N = int(input())
S = input()
fused = [S[0]]
for i in range(len(S)):
  if S[i] != fused[-1]:
    fused.append(S[i])

print(len(fused)) N = int(input()) N int(input()) int input() input S = input() S input() input fused = [S[0]] fused [S[0]] S[0] S 0 for i in range(len(S)):
  if S[i] != fused[-1]:
    fused.append(S[i]) i range(len(S)) range len(S) len S if S[i] != fused[-1]:
    fused.append(S[i]) S[i] != fused[-1] S[i] S i fused[-1] fused -1 fused.append(S[i]) fused.append fused append S[i] S i print(len(fused)) print len(fused) len fused S = input() input() S N = int(input()) int(input()) N fused = [S[0]] [S[0]] fused
N = int(input())
S = input()
fused = [S[0]]
for i in range(len(S)):
  if S[i] != fused[-1]:
    fused.append(S[i])

print(len(fused))