a, b, c = input().split() a = int(a) b = int(b) ans = 'NO' if c =='<': if a < b: ans = 'YES' elif c == '>': if a > b: ans = 'YES' else: # c == '=': if a == b: ans = 'YES' print(ans)