_S, _T, c = gets.split S, T = [_S, _T].map(&:to_i) result = case c when ?= S == T when ?< S < T when ?> S > T end puts result ? "YES" : "NO"