a,b,c = gets.split a = a.to_i b = b.to_i "=><"[a <=> b] == c ? "YES" : "NO"