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

ans = 0
before = ""
for i in s:
    if i != before:
        ans += 1
        before = i

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

ans = 0
before = ""
for i in s:
    if i != before:
        ans += 1
        before = i

print(ans)