main=interact$f.words;f(x:y)=unwords[b|a<-[-406..66],b<-y,-read b==a]