n = int(input())
bef = ""
ans = 0
for s in input():
  if bef != s:
    ans += 1
    bef = s
print(ans) n = int(input()) n int(input()) int input() input bef = "" bef "" ans = 0 ans 0 for s in input():
  if bef != s:
    ans += 1
    bef = s s input() input if bef != s:
    ans += 1
    bef = s bef != s bef s ans += 1 ans 1 bef = s bef s print(ans) print ans ans = 0 0 ans n = int(input()) int(input()) n ans += 1 1 ans bef = s s bef bef = "" "" bef
n = int(input())
bef = ""
ans = 0
for s in input():
  if bef != s:
    ans += 1
    bef = s
print(ans)