n = int(input())
s = input()
res = 1
for i in range(n-1):
  if s[i] != s[i+1]:
    res += 1
print(res) n = int(input()) n int(input()) int input() input s = input() s input() input res = 1 res 1 for i in range(n-1):
  if s[i] != s[i+1]:
    res += 1 i range(n-1) range n-1 n 1 if s[i] != s[i+1]:
    res += 1 s[i] != s[i+1] s[i] s i s[i+1] s i+1 i 1 res += 1 res 1 print(res) print res s = input() input() s res = 1 1 res n = int(input()) int(input()) n res += 1 1 res
n = int(input())
s = input()
res = 1
for i in range(n-1):
  if s[i] != s[i+1]:
    res += 1
print(res)