import itertools
N = int(input())
S = list(input())
gr = list(itertools.groupby(S))
print(len(gr)) import itertools itertools N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input gr = list(itertools.groupby(S)) gr list(itertools.groupby(S)) list itertools.groupby(S) itertools.groupby itertools groupby S print(len(gr)) print len(gr) len gr S = list(input()) list(input()) S gr = list(itertools.groupby(S)) list(itertools.groupby(S)) gr N = int(input()) int(input()) N
import itertools
N = int(input())
S = list(input())
gr = list(itertools.groupby(S))
print(len(gr))
