N = int(input())
S = input()
anchor = ''
ans = 0

for i in range(N):
    if anchor != S[i]:
        anchor = S[i]
        ans += 1

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

for i in range(N):
    if anchor != S[i]:
        anchor = S[i]
        ans += 1

print(ans)