n = int(input())
s = input()
x = n
for i in range(n-1):
    if s[i] == s[i+1]:
        x -= 1
print(x) n = int(input()) n int(input()) int input() input s = input() s input() input x = n x n for i in range(n-1):
    if s[i] == s[i+1]:
        x -= 1 i range(n-1) range n-1 n 1 if s[i] == s[i+1]:
        x -= 1 s[i] == s[i+1] s[i] s i s[i+1] s i+1 i 1 x -= 1 x 1 print(x) print x x = n n x n = int(input()) int(input()) n s = input() input() s x -= 1 1 x
n = int(input())
s = input()
x = n
for i in range(n-1):
    if s[i] == s[i+1]:
        x -= 1
print(x)