N = int(input())
S = input()
ans = [S[0]]
for i in range(1, N):
    if S[i]==ans[-1]:
        continue
    else:
        ans.append(S[i])
print(len(ans)) N = int(input()) N int(input()) int input() input S = input() S input() input ans = [S[0]] ans [S[0]] S[0] S 0 for i in range(1, N):
    if S[i]==ans[-1]:
        continue
    else:
        ans.append(S[i]) i range(1, N) range 1 N if S[i]==ans[-1]:
        continue
    else:
        ans.append(S[i]) S[i]==ans[-1] S[i] S i ans[-1] ans -1 continue ans.append(S[i]) ans.append ans append S[i] S i print(len(ans)) print len(ans) len ans N = int(input()) int(input()) N S = input() input() S ans = [S[0]] [S[0]] ans
N = int(input())
S = input()
ans = [S[0]]
for i in range(1, N):
    if S[i]==ans[-1]:
        continue
    else:
        ans.append(S[i])
print(len(ans))