import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int s = sc.nextInt(); int t = sc.nextInt(); String c = sc.next(); System.out.println( (c.equals("<") && s < t) || (c.equals("=") && s == t) || (c.equals(">") && s > t) ? "YES" : "NO"); } }