import itertools input() print(len(list(itertools.groupby(input()))))