import itertools
n = int(input())
S = list(input())
L = [k for k, v in itertools.groupby(S)]
print(len(L)) import itertools itertools n = int(input()) n int(input()) int input() input S = list(input()) S list(input()) list input() input k for k, v in itertools.groupby(S) for k, v in itertools.groupby(S) k v itertools.groupby(S) itertools.groupby itertools groupby S for k, v in itertools.groupby(S) k L = [k for k, v in itertools.groupby(S)] L [k for k, v in itertools.groupby(S)] print(len(L)) print len(L) len L S = list(input()) list(input()) S n = int(input()) int(input()) n L = [k for k, v in itertools.groupby(S)] [k for k, v in itertools.groupby(S)] L
import itertools
n = int(input())
S = list(input())
L = [k for k, v in itertools.groupby(S)]
print(len(L))