N=int(input())
S=input()

ans=1
now=S[0]
for s in S[1:]:
    if now!=s:
        now=s
        ans+=1

print(ans) N=int(input()) N int(input()) int input() input S=input() S input() input ans=1 ans 1 now=S[0] now S[0] S 0 for s in S[1:]:
    if now!=s:
        now=s
        ans+=1 s S[1:] S 1: 1 if now!=s:
        now=s
        ans+=1 now!=s now s now=s now s ans+=1 ans 1 print(ans) print ans N=int(input()) int(input()) N ans+=1 1 ans S=input() input() S now=s s now now=S[0] S[0] now ans=1 1 ans
N=int(input())
S=input()

ans=1
now=S[0]
for s in S[1:]:
    if now!=s:
        now=s
        ans+=1

print(ans)