N=int(input()) k=1 while k<64: a,s,i,k=[1],1,-k+1,k+1 while sN])