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