n = int(input())
s = input()
b = s[0]
ans = 0
for i in range(1, n):
  if b == s[i]:
    next
  else:
    ans += 1
    b = s[i]
ans += 1
print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input b = s[0] b s[0] s 0 ans = 0 ans 0 for i in range(1, n):
  if b == s[i]:
    next
  else:
    ans += 1
    b = s[i] i range(1, n) range 1 n if b == s[i]:
    next
  else:
    ans += 1
    b = s[i] b == s[i] b s[i] s i next ans += 1 ans 1 b = s[i] b s[i] s i ans += 1 ans 1 print(ans) print ans n = int(input()) int(input()) n b = s[0] s[0] b ans = 0 0 ans s = input() input() s b = s[i] s[i] b ans += 1 1 ans ans += 1 1 ans
n = int(input())
s = input()
b = s[0]
ans = 0
for i in range(1, n):
  if b == s[i]:
    next
  else:
    ans += 1
    b = s[i]
ans += 1
print(ans)