N = int(input())
S = input()

ans = 0
buf = ""
for l in S:
    if buf != l:
        buf = l
        ans += 1
    else:
        pass
print(ans) N = int(input()) N int(input()) int input() input S = input() S input() input ans = 0 ans 0 buf = "" buf "" for l in S:
    if buf != l:
        buf = l
        ans += 1
    else:
        pass l S if buf != l:
        buf = l
        ans += 1
    else:
        pass buf != l buf l buf = l buf l ans += 1 ans 1 print(ans) print ans N = int(input()) int(input()) N ans = 0 0 ans S = input() input() S buf = l l buf buf = "" "" buf ans += 1 1 ans
N = int(input())
S = input()

ans = 0
buf = ""
for l in S:
    if buf != l:
        buf = l
        ans += 1
    else:
        pass
print(ans)