from itertools import groupby
N = int(input())
S = input()
g = groupby(S)
print(len(list(g))) from itertools import groupby N = int(input()) N int(input()) int input() input S = input() S input() input g = groupby(S) g groupby(S) groupby S print(len(list(g))) print len(list(g)) len list(g) list g S = input() input() S N = int(input()) int(input()) N g = groupby(S) groupby(S) g
from itertools import groupby
N = int(input())
S = input()
g = groupby(S)
print(len(list(g)))