import itertools
a=int(input())
b=input()

list2 = [k for k, v in itertools.groupby(b)]
print(len(list2)) import itertools itertools a=int(input()) a int(input()) int input() input b=input() b input() input k for k, v in itertools.groupby(b) for k, v in itertools.groupby(b) k v itertools.groupby(b) itertools.groupby itertools groupby b for k, v in itertools.groupby(b) k list2 = [k for k, v in itertools.groupby(b)] list2 [k for k, v in itertools.groupby(b)] print(len(list2)) print len(list2) len list2 a=int(input()) int(input()) a b=input() input() b list2 = [k for k, v in itertools.groupby(b)] [k for k, v in itertools.groupby(b)] list2
import itertools
a=int(input())
b=input()

list2 = [k for k, v in itertools.groupby(b)]
print(len(list2))
