N = int(input())
S = list(''.join(input()))

t = 1
for i in range(N-1):
    if S[i]!=S[i+1]:
        t += 1
print(t) N = int(input()) N int(input()) int input() input S = list(''.join(input())) S list(''.join(input())) list ''.join(input()) ''.join '' join input() input t = 1 t 1 for i in range(N-1):
    if S[i]!=S[i+1]:
        t += 1 i range(N-1) range N-1 N 1 if S[i]!=S[i+1]:
        t += 1 S[i]!=S[i+1] S[i] S i S[i+1] S i+1 i 1 t += 1 t 1 print(t) print t N = int(input()) int(input()) N S = list(''.join(input())) list(''.join(input())) S t = 1 1 t t += 1 1 t
N = int(input())
S = list(''.join(input()))

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