A=open(0).read().split() t=-4097 l=[32505856,1015808,31744,992,31,17318416,8659208,4329604,2164802,1082401,17043521,1118480,4329631,33061951,33088575] for B in A[26:]:t^=1<