m@main=getLine>>=putStrLn.f.words>>m f[x,y]=x++' ':"<=>"!!(1+signum(read x-read y)):' ':y