n = int(input())
s = input()
ans = n

if n == 1:
  print("1")
else:
  for i in range(n-1):
    if s[i] == s[i+1]:
      ans -= 1
  print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input ans = n ans n if n == 1:
  print("1")
else:
  for i in range(n-1):
    if s[i] == s[i+1]:
      ans -= 1
  print(ans) n == 1 n 1 print("1") print "1" for i in range(n-1):
    if s[i] == s[i+1]:
      ans -= 1
   i range(n-1) range n-1 n 1 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 s = input() input() s n = int(input()) int(input()) n ans -= 1 1 ans ans = n n ans
n = int(input())
s = input()
ans = n

if n == 1:
  print("1")
else:
  for i in range(n-1):
    if s[i] == s[i+1]:
      ans -= 1
  print(ans)