main=interact$ \s->u[u[i|j<-[b,b+2..10^5],i<-lines s,i==show j]|b<-[0,1]] u=unlines