import java.util.Scanner; import java.lang.String; class Main{ public static void main(String[] args){ Scanner scan=new Scanner(System.in); int S=Integer.parseInt(scan.next()); int T=Integer.parseInt(scan.next()); String c=scan.next(); if((c.equals("=")&&S==T)||(c.equals("<")&&S")&&S>T)){ System.out.println("YES"); }else{ System.out.println("NO"); } return; } }