tmp = list(input().split()) s, t = map(int, tmp[:2]) c = tmp[-1] yes = False if c == "=" and s == t: yes = True if c == ">" and s > t: yes = True if c == "<" and s < t: yes = True if yes: print("YES") else: print("NO")