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

minus = 0
for i in range(1,N):
  if S[i-1] == S[i]:
    minus += 1

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

minus = 0
for i in range(1,N):
  if S[i-1] == S[i]:
    minus += 1

print(N - minus)