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

ans = 1
for i in range(1, n):
    if s[i-1] != s[i]:
        ans += 1
print(ans) n = int(input()) n int(input()) int input() input s = list(input()) s list(input()) list input() input ans = 1 ans 1 for i in range(1, n):
    if s[i-1] != s[i]:
        ans += 1 i range(1, n) range 1 n if s[i-1] != s[i]:
        ans += 1 s[i-1] != s[i] s[i-1] s i-1 i 1 s[i] s i ans += 1 ans 1 print(ans) print ans ans = 1 1 ans ans += 1 1 ans s = list(input()) list(input()) s n = int(input()) int(input()) n
n = int(input())
s = list(input())

ans = 1
for i in range(1, n):
    if s[i-1] != s[i]:
        ans += 1
print(ans)
