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