N = int(input())
S = list(input())

cnt = 1
tmp = S[0]
for k in range(1, N):
  if not S[k] == tmp:
    cnt += 1
  tmp = S[k]
print(cnt) N = int(input()) N int(input()) int input() input S = list(input()) S list(input()) list input() input cnt = 1 cnt 1 tmp = S[0] tmp S[0] S 0 for k in range(1, N):
  if not S[k] == tmp:
    cnt += 1
  tmp = S[k] k range(1, N) range 1 N if not S[k] == tmp:
    cnt += 1
   not S[k] == tmp S[k] == tmp S[k] S k tmp cnt += 1 cnt 1 tmp = S[k] tmp S[k] S k print(cnt) print cnt tmp = S[k] S[k] tmp tmp = S[0] S[0] tmp S = list(input()) list(input()) S cnt = 1 1 cnt N = int(input()) int(input()) N cnt += 1 1 cnt
N = int(input())
S = list(input())

cnt = 1
tmp = S[0]
for k in range(1, N):
  if not S[k] == tmp:
    cnt += 1
  tmp = S[k]
print(cnt)