local s = io.read("*n") local t = io.read("*n") local c = io.read():gsub(" ", "") local ans = (function () if c == "<" then return s < t end if c == ">" then return s > t end if c == "=" then return s == t end end)() and "YES" or "NO" print(ans)