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

i = 0
count = 0
while i < n:
  c = s[i]
  while i < n and s[i] == c:
    i += 1
  count += 1
print(count) n = int(input()) n int(input()) int input() input s = input() s input() input i = 0 i 0 count = 0 count 0 while i < n:
  c = s[i]
  while i < n and s[i] == c:
    i += 1
  count += 1 i < n i n c = s[i] c s[i] s i while i < n and s[i] == c:
    i += 1
   i < n and s[i] == c i < n i n s[i] == c s[i] s i c i += 1 i 1 count += 1 count 1 print(count) print count count = 0 0 count count += 1 1 count i += 1 1 i n = int(input()) int(input()) n s = input() input() s c = s[i] s[i] c i = 0 0 i
n = int(input())
s = input()

i = 0
count = 0
while i < n:
  c = s[i]
  while i < n and s[i] == c:
    i += 1
  count += 1
print(count)