from itertools import groupby
n=int(input())
s=input()
print(len(list(groupby(s)))) from itertools import groupby n=int(input()) n int(input()) int input() input s=input() s input() input print(len(list(groupby(s)))) print len(list(groupby(s))) len list(groupby(s)) list groupby(s) groupby s n=int(input()) int(input()) n s=input() input() s
from itertools import groupby
n=int(input())
s=input()
print(len(list(groupby(s))))