import Data.Bool import Data.List main = getContents >>= putStrLn . bool "NO" "YES" . (\[s,t]->s==t) . map sort . words