n = int(input())
s = str(input())
count = 1

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

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

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

print(count)
