# frozen_string_literal: true S, T, C = gets.split.then { [_1.to_i, _2.to_i, _3] } def solve if case C when '<' then S < T when '>' then S > T when '=' then S == T end 'YES' else 'NO' end end puts solve