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