using System; using System.Collections.Generic; using static System.Console; using System.Linq; class yc299 { static int[] NList => ReadLine().Split().Select(int.Parse).ToArray(); static int[][] NMap(int n) => Enumerable.Repeat(0, n).Select(_ => NList).ToArray(); static void Main() { var n = ReadLine().Split(); WriteLine(A(int.Parse(n[0]), int.Parse(n[1]), n[2]) ? "YES" : "NO"); } static bool A(int a, int b, string c) { switch (c) { case "<": return a < b; case ">": return a > b; default: return a == b; } } }