N = int(input())
S = input()
ans = 1

for n in range(1,N):
  if S[n-1]!=S[n]:
    ans+=1
    
print(ans) N = int(input()) N int(input()) int input() input S = input() S input() input ans = 1 ans 1 for n in range(1,N):
  if S[n-1]!=S[n]:
    ans+=1
     n range(1,N) range 1 N if S[n-1]!=S[n]:
    ans+=1
     S[n-1]!=S[n] S[n-1] S n-1 n 1 S[n] S n ans+=1 ans 1 print(ans) print ans N = int(input()) int(input()) N ans+=1 1 ans S = input() input() S ans = 1 1 ans
N = int(input())
S = input()
ans = 1

for n in range(1,N):
  if S[n-1]!=S[n]:
    ans+=1
    
print(ans)