def main(): s, t, c = input().split() s, t = int(s), int(t) if (c == "=" and s == t) or (c == "<" and s < t) or (c == ">" and s > t): print("YES") else: print("NO") if __name__ == "__main__": main()