n = int(input())
s = input()
ans = 0
i = 0
while i < n:
    ans += 1
    while i + 1 < n and s[i] == s[i + 1]:
        i += 1
    i += 1
print(ans) n = int(input()) n int(input()) int input() input s = input() s input() input ans = 0 ans 0 i = 0 i 0 while i < n:
    ans += 1
    while i + 1 < n and s[i] == s[i + 1]:
        i += 1
    i += 1 i < n i n ans += 1 ans 1 while i + 1 < n and s[i] == s[i + 1]:
        i += 1
     i + 1 < n and s[i] == s[i + 1] i + 1 < n i + 1 i 1 n s[i] == s[i + 1] s[i] s i s[i + 1] s i + 1 i 1 i += 1 i 1 i += 1 i 1 print(ans) print ans ans += 1 1 ans ans = 0 0 ans s = input() input() s i = 0 0 i i += 1 1 i i += 1 1 i n = int(input()) int(input()) n
n = int(input())
s = input()
ans = 0
i = 0
while i < n:
    ans += 1
    while i + 1 < n and s[i] == s[i + 1]:
        i += 1
    i += 1
print(ans)
