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