n = int(input())
st = input()

ans = 1
for i in range(n-1):
    if st[i] != st[i+1]:
        ans += 1
print(ans) n = int(input()) n int(input()) int input() input st = input() st input() input ans = 1 ans 1 for i in range(n-1):
    if st[i] != st[i+1]:
        ans += 1 i range(n-1) range n-1 n 1 if st[i] != st[i+1]:
        ans += 1 st[i] != st[i+1] st[i] st i st[i+1] st i+1 i 1 ans += 1 ans 1 print(ans) print ans n = int(input()) int(input()) n ans = 1 1 ans st = input() input() st ans += 1 1 ans
n = int(input())
st = input()

ans = 1
for i in range(n-1):
    if st[i] != st[i+1]:
        ans += 1
print(ans)
