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