main=interact(unlines#) u#x=u[u[n|a<-[p,p+2..7^6],n<-lines x,n==show a]|p<-[0,1]]