n = int(input())
s = list(input())
slime = []
for i in range(n-1):
	if s[i] != s[i+1]:
		slime.append(s[i+1])
print(len(slime)+1) n = int(input()) n int(input()) int input() input s = list(input()) s list(input()) list input() input slime = [] slime [] for i in range(n-1):
	if s[i] != s[i+1]:
		slime.append(s[i+1]) i range(n-1) range n-1 n 1 if s[i] != s[i+1]:
		slime.append(s[i+1]) s[i] != s[i+1] s[i] s i s[i+1] s i+1 i 1 slime.append(s[i+1]) slime.append slime append s[i+1] s i+1 i 1 print(len(slime)+1) print len(slime)+1 len(slime) len slime 1 s = list(input()) list(input()) s n = int(input()) int(input()) n slime = [] [] slime
n = int(input())
s = list(input())
slime = []
for i in range(n-1):
	if s[i] != s[i+1]:
		slime.append(s[i+1])
print(len(slime)+1)