n=int(input())
s=input()

c=n

for i in range(0,n-1):
    if s[i]==s[i+1]:
        c-=1

print(c) n=int(input()) n int(input()) int input() input s=input() s input() input c=n c n for i in range(0,n-1):
    if s[i]==s[i+1]:
        c-=1 i range(0,n-1) range 0 n-1 n 1 if s[i]==s[i+1]:
        c-=1 s[i]==s[i+1] s[i] s i s[i+1] s i+1 i 1 c-=1 c 1 print(c) print c n=int(input()) int(input()) n c-=1 1 c s=input() input() s c=n n c
n=int(input())
s=input()

c=n

for i in range(0,n-1):
    if s[i]==s[i+1]:
        c-=1

print(c)