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

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

c_curr = ""
ans = 0
for c in s:
    if c != c_curr:
        ans += 1
        c_curr = c
print(ans)
