n = int(input())
s = input()
memo = ""
for i in s:
  if memo == i:
    n-=1
  else:
    memo=i
print(n) n = int(input()) n int(input()) int input() input s = input() s input() input memo = "" memo "" for i in s:
  if memo == i:
    n-=1
  else:
    memo=i i s if memo == i:
    n-=1
  else:
    memo=i memo == i memo i n-=1 n 1 memo=i memo i print(n) print n n-=1 1 n s = input() input() s n = int(input()) int(input()) n memo=i i memo memo = "" "" memo
n = int(input())
s = input()
memo = ""
for i in s:
  if memo == i:
    n-=1
  else:
    memo=i
print(n)