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


current = ""
ans = ""
for s in S:
    if s != current:
        current = s
        ans += s

print(len(ans))
# print(ans)


 N = int(input()) N int(input()) int input() input S = input() S input() input current = "" current "" ans = "" ans "" for s in S:
    if s != current:
        current = s
        ans += s s S if s != current:
        current = s
        ans += s s != current s current current = s current s ans += s ans s print(len(ans)) print len(ans) len ans current = s s current ans += s s ans current = "" "" current ans = "" "" ans N = int(input()) int(input()) N S = input() input() S
N = int(input())
S = input()


current = ""
ans = ""
for s in S:
    if s != current:
        current = s
        ans += s

print(len(ans))
# print(ans)



