N = int(input())

S = input()

ans = []

for i in range(N):
    p = S[i]

    if i != N - 1:
        if p != S[i+1]:
            ans.append(S[i])
        else:
            continue
    else:
        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(N):
    p = S[i]

    if i != N - 1:
        if p != S[i+1]:
            ans.append(S[i])
        else:
            continue
    else:
        ans.append(S[i]) i range(N) range N p = S[i] p S[i] S i if i != N - 1:
        if p != S[i+1]:
            ans.append(S[i])
        else:
            continue
    else:
        ans.append(S[i]) i != N - 1 i N - 1 N 1 if p != S[i+1]:
            ans.append(S[i])
        else:
            continue
     p != S[i+1] p S[i+1] S i+1 i 1 ans.append(S[i]) ans.append ans append S[i] S i continue ans.append(S[i]) ans.append ans append S[i] S i print(len(ans)) print len(ans) len ans p = S[i] S[i] p ans = [] [] ans S = input() input() S N = int(input()) int(input()) N
N = int(input())

S = input()

ans = []

for i in range(N):
    p = S[i]

    if i != N - 1:
        if p != S[i+1]:
            ans.append(S[i])
        else:
            continue
    else:
        ans.append(S[i])

print(len(ans))
