-- Try AtCoder
-- author: Leonardone @ NEETSDKASU

main = interact $ head . dropWhile null . zipWith ($) (map foldl1 $ zipWith (.) (map ((.) . ($ (`lookup` [(True, 0)]))) [((maybe "" (const "<")) .), ((maybe "=" (const ">")) .)]) [(<), (>)]) . repeat . words


