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