n = int(input())
s = input()

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

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

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

print(count)
