n = int(input())
s = input()

ans = 0
prev = ''
for si in s:
    if prev == si:
        continue
    else:
        ans += 1
        prev = si

print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input ans = 0 ans 0 prev = '' prev '' for si in s:
    if prev == si:
        continue
    else:
        ans += 1
        prev = si si s if prev == si:
        continue
    else:
        ans += 1
        prev = si prev == si prev si continue ans += 1 ans 1 prev = si prev si print(ans) print ans ans = 0 0 ans n = int(input()) int(input()) n s = input() input() s ans += 1 1 ans prev = si si prev prev = '' '' prev
n = int(input())
s = input()

ans = 0
prev = ''
for si in s:
    if prev == si:
        continue
    else:
        ans += 1
        prev = si

print(ans)