input()
cnt = 0
x = ""
for s in input():
    if x != s:
        cnt += 1
        x = s
print(cnt) input() input cnt = 0 cnt 0 x = "" x "" for s in input():
    if x != s:
        cnt += 1
        x = s s input() input if x != s:
        cnt += 1
        x = s x != s x s cnt += 1 cnt 1 x = s x s print(cnt) print cnt x = "" "" x cnt = 0 0 cnt x = s s x cnt += 1 1 cnt
input()
cnt = 0
x = ""
for s in input():
    if x != s:
        cnt += 1
        x = s
print(cnt)