n = int(input())
s = input()
slime_end = "0"
num = 0
for i in range(n):
    if s[i] != slime_end:
        num += 1
        slime_end = s[i]
print(num) n = int(input()) n int(input()) int input() input s = input() s input() input slime_end = "0" slime_end "0" num = 0 num 0 for i in range(n):
    if s[i] != slime_end:
        num += 1
        slime_end = s[i] i range(n) range n if s[i] != slime_end:
        num += 1
        slime_end = s[i] s[i] != slime_end s[i] s i slime_end num += 1 num 1 slime_end = s[i] slime_end s[i] s i print(num) print num num = 0 0 num slime_end = s[i] s[i] slime_end s = input() input() s slime_end = "0" "0" slime_end num += 1 1 num n = int(input()) int(input()) n
n = int(input())
s = input()
slime_end = "0"
num = 0
for i in range(n):
    if s[i] != slime_end:
        num += 1
        slime_end = s[i]
print(num)