N = int(input())
S = input() + "Z"

ans = 0
for i in range(N):
  if S[i] != S[i+1]:
    ans += 1
print(ans) N = int(input()) N int(input()) int input() input S = input() + "Z" S input() + "Z" input() input "Z" ans = 0 ans 0 for i in range(N):
  if S[i] != S[i+1]:
    ans += 1 i range(N) range N 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 print(ans) print ans ans = 0 0 ans N = int(input()) int(input()) N S = input() + "Z" input() + "Z" S ans += 1 1 ans
N = int(input())
S = input() + "Z"

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