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