import itertools as i;N = int(input());print(len([k for k, v in i.groupby(input())])) k for k, v in i.groupby(input()) for k, v in i.groupby(input()) k v i.groupby(input()) i.groupby i groupby input() input for k, v in i.groupby(input()) k import itertools as i itertools N = int(input()) N int(input()) int input() input print(len([k for k, v in i.groupby(input())])) print len([k for k, v in i.groupby(input())]) len [k for k, v in i.groupby(input())] N = int(input()) int(input()) N
import itertools as i;N = int(input());print(len([k for k, v in i.groupby(input())]))