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

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

new = S[0]
for i in range(1,N):
  if S[i]!=S[i-1]:new = new + S[i]
print(len(new))