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