main=getLine>>=putStrLn.(\x->if x!!1==product x then "=" else "!=").map read.words