N = int(input())
S = input()

ans = 1
for i, s in enumerate(S):
  if i == N-1:
    break
  if s == S[i+1]:
    continue
  else:
    ans += 1

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

ans = 1
for i, s in enumerate(S):
  if i == N-1:
    break
  if s == S[i+1]:
    continue
  else:
    ans += 1

print(ans)