n = int(input())
s = input()
fusion =[]
tmp = s[0]
fusion.append(tmp)
for i in s[1:]:
    if i != tmp:
        tmp = i
        fusion.append(i)
print(len(fusion)) n = int(input()) n int(input()) int input() input s = input() s input() input fusion =[] fusion [] tmp = s[0] tmp s[0] s 0 fusion.append(tmp) fusion.append fusion append tmp for i in s[1:]:
    if i != tmp:
        tmp = i
        fusion.append(i) i s[1:] s 1: 1 if i != tmp:
        tmp = i
        fusion.append(i) i != tmp i tmp tmp = i tmp i fusion.append(i) fusion.append fusion append i print(len(fusion)) print len(fusion) len fusion tmp = s[0] s[0] tmp s = input() input() s tmp = i i tmp n = int(input()) int(input()) n fusion =[] [] fusion
n = int(input())
s = input()
fusion =[]
tmp = s[0]
fusion.append(tmp)
for i in s[1:]:
    if i != tmp:
        tmp = i
        fusion.append(i)
print(len(fusion))
