n=int(input()) s=input() l=[] for i in range(n): if i==0 or s[i-1]!=s[i]: l+=[0] l[-1]+=1 print(len(l))