n = int(input())
s = str(input())
ans = n
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 = str(input()) s str(input()) str input() input ans = n ans n 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 s = str(input()) str(input()) s ans = n n ans n = int(input()) int(input()) n ans -= 1 1 ans
n = int(input())
s = str(input())
ans = n
for i in range(1,n):
    if s[i-1] == s[i]:
        ans -= 1
print(ans)