#include int main() { int s, t; char c; scanf("%d %d %c", &s, &t, &c); int f = -1; if (c == '<' && s < t)f = 1; if (c == '>' && s > t)f = 1; if (c == '=' && s == t)f = 1; if (f > 0) printf("YES\n"); else printf("NO\n"); return 0; }