n=int(input()) s=input() print(1+sum(s[i+1]!=s[i] for i in range(n-1)))