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