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

ans = []
for i in range(len(S)):
    if i == len(S) - 1:
        ans.append(S[i])
        break
    if S[i] != S[i+1]:
        ans.append(S[i])
print(len(ans)) N = int(input()) N int(input()) int input() input S = input() S input() input ans = [] ans [] for i in range(len(S)):
    if i == len(S) - 1:
        ans.append(S[i])
        break
    if S[i] != S[i+1]:
        ans.append(S[i]) i range(len(S)) range len(S) len S if i == len(S) - 1:
        ans.append(S[i])
        break
     i == len(S) - 1 i len(S) - 1 len(S) len S 1 ans.append(S[i]) ans.append ans append S[i] S i break if S[i] != S[i+1]:
        ans.append(S[i]) S[i] != S[i+1] S[i] S i S[i+1] S i+1 i 1 ans.append(S[i]) ans.append ans append S[i] S i print(len(ans)) print len(ans) len ans S = input() input() S ans = [] [] ans N = int(input()) int(input()) N
N = int(input())
S = input()

ans = []
for i in range(len(S)):
    if i == len(S) - 1:
        ans.append(S[i])
        break
    if S[i] != S[i+1]:
        ans.append(S[i])
print(len(ans))