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

for i in range(1, N):
    if(S[i-1] == S[i]):
        N = N-1
print(N) N = int(input()) N int(input()) int input() input S = input() S input() input for i in range(1, N):
    if(S[i-1] == S[i]):
        N = N-1 i range(1, N) range 1 N if(S[i-1] == S[i]):
        N = N-1 S[i-1] == S[i] S[i-1] S i-1 i 1 S[i] S i N = N-1 N N-1 N 1 print(N) print N N = N-1 N-1 N S = input() input() S N = int(input()) int(input()) N
N = int(input())
S = input()

for i in range(1, N):
    if(S[i-1] == S[i]):
        N = N-1
print(N)
