N = int(input())
S = input()
tmp, val = '', []
for i in S:
    if i !=tmp:
        val.append(i)
        tmp = i
print(len(val)) N = int(input()) N int(input()) int input() input S = input() S input() input tmp, val = '', [] tmp '' val [] for i in S:
    if i !=tmp:
        val.append(i)
        tmp = i i S if i !=tmp:
        val.append(i)
        tmp = i i !=tmp i tmp val.append(i) val.append val append i tmp = i tmp i print(len(val)) print len(val) len val tmp, val = '', [] '' tmp tmp = i i tmp S = input() input() S N = int(input()) int(input()) N val = '', [] [] val
N = int(input())
S = input()
tmp, val = '', []
for i in S:
    if i !=tmp:
        val.append(i)
        tmp = i
print(len(val))