N=int(input()) S=input() ans=N for i in range(1,N): if S[i-1]==S[i]: ans-=1 print(ans)