N = int(input())
S = list(input())
n = 1
for i in range(1, N):
	if S[i-1] != S[i]:
		n += 1
print(n) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input n = 1 n 1 for i in range(1, N):
	if S[i-1] != S[i]:
		n += 1 i range(1, N) range 1 N if S[i-1] != S[i]:
		n += 1 S[i-1] != S[i] S[i-1] S i-1 i 1 S[i] S i n += 1 n 1 print(n) print n n += 1 1 n S = list(input()) list(input()) S n = 1 1 n N = int(input()) int(input()) N
N = int(input())
S = list(input())
n = 1
for i in range(1, N):
	if S[i-1] != S[i]:
		n += 1
print(n)