n = int(input())
s = input()
temp = ''
cnt = 0
for i in s:
  if i != temp:
    cnt += 1
    temp = i
print(cnt) n = int(input()) n int(input()) int input() input s = input() s input() input temp = '' temp '' cnt = 0 cnt 0 for i in s:
  if i != temp:
    cnt += 1
    temp = i i s if i != temp:
    cnt += 1
    temp = i i != temp i temp cnt += 1 cnt 1 temp = i temp i print(cnt) print cnt n = int(input()) int(input()) n temp = '' '' temp temp = i i temp cnt += 1 1 cnt s = input() input() s cnt = 0 0 cnt
n = int(input())
s = input()
temp = ''
cnt = 0
for i in s:
  if i != temp:
    cnt += 1
    temp = i
print(cnt)