n = int(input())
s = input()
ans = 0
p = None
for letter in s:
    if letter != p:
        p = letter
        ans += 1
print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input ans = 0 ans 0 p = None p None for letter in s:
    if letter != p:
        p = letter
        ans += 1 letter s if letter != p:
        p = letter
        ans += 1 letter != p letter p p = letter p letter ans += 1 ans 1 print(ans) print ans p = letter letter p ans = 0 0 ans s = input() input() s ans += 1 1 ans n = int(input()) int(input()) n p = None None p
n = int(input())
s = input()
ans = 0
p = None
for letter in s:
    if letter != p:
        p = letter
        ans += 1
print(ans)
