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

slime = []
slime.append(s[0])
for i in range(1, n):
    if s[i-1] == s[i]:
        continue
    else:
        slime.append(s[i])

print(len(slime)) n = int(input()) n int(input()) int input() input s = input() s input() input slime = [] slime [] slime.append(s[0]) slime.append slime append s[0] s 0 for i in range(1, n):
    if s[i-1] == s[i]:
        continue
    else:
        slime.append(s[i]) i range(1, n) range 1 n if s[i-1] == s[i]:
        continue
    else:
        slime.append(s[i]) s[i-1] == s[i] s[i-1] s i-1 i 1 s[i] s i continue slime.append(s[i]) slime.append slime append s[i] s i print(len(slime)) print len(slime) len slime s = input() input() s n = int(input()) int(input()) n slime = [] [] slime
n = int(input())
s = input()

slime = []
slime.append(s[0])
for i in range(1, n):
    if s[i-1] == s[i]:
        continue
    else:
        slime.append(s[i])

print(len(slime))
