N = int(input())
S = input()

ans = 0
pre = ''
for i in range(N):
    if pre != S[i:i+1]: ans += 1
    pre = S[i:i+1]
print(ans) N = int(input()) N int(input()) int input() input S = input() S input() input ans = 0 ans 0 pre = '' pre '' for i in range(N):
    if pre != S[i:i+1]: ans += 1
    pre = S[i:i+1] i range(N) range N if pre != S[i:i+1]: ans += 1
     pre != S[i:i+1] pre S[i:i+1] S i:i+1 i i+1 i 1 pre = S[i:i+1] pre S[i:i+1] S i:i+1 i i+1 i 1 print(ans) print ans pre = '' '' pre S = input() input() S ans = 0 0 ans pre = S[i:i+1] S[i:i+1] pre N = int(input()) int(input()) N
N = int(input())
S = input()

ans = 0
pre = ''
for i in range(N):
    if pre != S[i:i+1]: ans += 1
    pre = S[i:i+1]
print(ans)