N = int(input())
S = input()
cnt = 0
post_c = ''
for i in range(len(S)):
    if post_c != S[i]:
        post_c = S[i]
        cnt += 1
print(cnt) N = int(input()) N int(input()) int input() input S = input() S input() input cnt = 0 cnt 0 post_c = '' post_c '' for i in range(len(S)):
    if post_c != S[i]:
        post_c = S[i]
        cnt += 1 i range(len(S)) range len(S) len S if post_c != S[i]:
        post_c = S[i]
        cnt += 1 post_c != S[i] post_c S[i] S i post_c = S[i] post_c S[i] S i cnt += 1 cnt 1 print(cnt) print cnt cnt = 0 0 cnt N = int(input()) int(input()) N S = input() input() S post_c = S[i] S[i] post_c post_c = '' '' post_c cnt += 1 1 cnt
N = int(input())
S = input()
cnt = 0
post_c = ''
for i in range(len(S)):
    if post_c != S[i]:
        post_c = S[i]
        cnt += 1
print(cnt)
