I=input N=int(I()) S=I() i=a=0 while i