from itertools import groupby
n= input()
s = input()
G = groupby(s)

print(len(list(G))) from itertools import groupby n= input() n 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 n= input() input() n G = groupby(s) groupby(s) G s = input() input() s
from itertools import groupby
n= input()
s = input()
G = groupby(s)

print(len(list(G)))