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