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