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

ans = 0
p = S[0]
for i in range(1, N):
    if S[i] == p:  continue
    else:
        ans += 1
        p = S[i]
print(ans + 1) N = int(input()) N int(input()) int input() input S = input() S input() input ans = 0 ans 0 p = S[0] p S[0] S 0 for i in range(1, N):
    if S[i] == p:  continue
    else:
        ans += 1
        p = S[i] i range(1, N) range 1 N if S[i] == p:  continue
    else:
        ans += 1
        p = S[i] S[i] == p S[i] S i p ans += 1 ans 1 p = S[i] p S[i] S i print(ans + 1) print ans + 1 ans 1 p = S[0] S[0] p S = input() input() S ans = 0 0 ans N = int(input()) int(input()) N ans += 1 1 ans p = S[i] S[i] p
N = int(input())
S = input()

ans = 0
p = S[0]
for i in range(1, N):
    if S[i] == p:  continue
    else:
        ans += 1
        p = S[i]
print(ans + 1)