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