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