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