S,T,c = map(str,input().split()) S,T = int(S),int(T) if c == "<": print(["NO","YES"][S": print(["NO","YES"][S>T]) else: print(["NO","YES"][S==T])