n = int(input())
S = input()
beforeChara = ""
cnt = 0
for s in S:
    if s != beforeChara:
        cnt += 1
    beforeChara = s
print(cnt) n = int(input()) n int(input()) int input() input S = input() S input() input beforeChara = "" beforeChara "" cnt = 0 cnt 0 for s in S:
    if s != beforeChara:
        cnt += 1
    beforeChara = s s S if s != beforeChara:
        cnt += 1
     s != beforeChara s beforeChara cnt += 1 cnt 1 beforeChara = s beforeChara s print(cnt) print cnt cnt = 0 0 cnt S = input() input() S n = int(input()) int(input()) n beforeChara = s s beforeChara beforeChara = "" "" beforeChara cnt += 1 1 cnt
n = int(input())
S = input()
beforeChara = ""
cnt = 0
for s in S:
    if s != beforeChara:
        cnt += 1
    beforeChara = s
print(cnt)