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

for i in range(N - 1):
    if S[i] == S[i + 1]:
        S = S[:i] + '_' + S[i + 1:]

print(len(S.replace('_', ''))) N = int(input()) N int(input()) int input() input S = input() S input() input for i in range(N - 1):
    if S[i] == S[i + 1]:
        S = S[:i] + '_' + S[i + 1:] i range(N - 1) range N - 1 N 1 if S[i] == S[i + 1]:
        S = S[:i] + '_' + S[i + 1:] S[i] == S[i + 1] S[i] S i S[i + 1] S i + 1 i 1 S = S[:i] + '_' + S[i + 1:] S S[:i] + '_' + S[i + 1:] S[:i] + '_' S[:i] S :i i '_' S[i + 1:] S i + 1: i + 1 i 1 print(len(S.replace('_', ''))) print len(S.replace('_', '')) len S.replace('_', '') S.replace S replace '_' '' N = int(input()) int(input()) N S = input() input() S S = S[:i] + '_' + S[i + 1:] S[:i] + '_' + S[i + 1:] S
N = int(input())
S = input()

for i in range(N - 1):
    if S[i] == S[i + 1]:
        S = S[:i] + '_' + S[i + 1:]

print(len(S.replace('_', '')))
