using System; class Program { static void Main(string[] args) { var input = Console.ReadLine().Split(); var S = int.Parse(input[0]); var T = int.Parse(input[1]); var c = input[2]; var ans = "NO"; switch (c) { case "<": if (S < T) ans = "YES"; break; case ">": if (S > T) ans = "YES"; break; case "=": if (S == T) ans = "YES"; break; default: break; } Console.WriteLine(ans); } }