s, t, c = input().split() s = int(s) t = int(t) if c == '<' and s < t: print("YES") elif c == '>' and s > t: print("YES") elif c == '=' and s == t: print("YES") else: print("NO")