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

ans = 1
temp = s[0]

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

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

ans = 1
temp = s[0]

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

print(ans)
