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