from sys import stdin def main(): input = lambda: stdin.readline()[:-1] S, T, C = input().split() S, T = map(int, [S, T]) if S < T: c = "<" elif S > T: c = ">" else: c = "=" if C == c: print("YES") else: print("NO") main()