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

s = S[0]
cnt = 1

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

s = S[0]
cnt = 1

for i in range(1, N):
    if s != S[i]:
        cnt += 1
        s = S[i]
print(cnt)