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