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