N=int(input())
S=input()
ans=1
for i in range(len(S)-1):
    if S[i]==S[i+1]:
        pass
    else:
        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(len(S)-1):
    if S[i]==S[i+1]:
        pass
    else:
        ans+=1 i range(len(S)-1) range len(S)-1 len(S) len S 1 if S[i]==S[i+1]:
        pass
    else:
        ans+=1 S[i]==S[i+1] S[i] S i S[i+1] S i+1 i 1 ans+=1 ans 1 print(ans) print ans ans+=1 1 ans S=input() input() S N=int(input()) int(input()) N ans=1 1 ans
N=int(input())
S=input()
ans=1
for i in range(len(S)-1):
    if S[i]==S[i+1]:
        pass
    else:
        ans+=1
print(ans)