#!/usr/bin/env python3 import sys def main(): l = input().split() S = int(l[0]) T = int(l[1]) c = l[2] print("YES" if (S == T and c == "=") or (S > T and c == ">") or (S < T and c == "<") else "NO") return if __name__ == '__main__': main()