#include #include #include #include using namespace std; int main() { int s,t; char c; bool f = 0; cin >> s>>t>>c; if (c == '<') { if (s < t) f = 1; } else if (c == '>') { if (s > t) f = 1; } else if (c == '=') { if (s == t) f = 1; } if(f==1) cout << "YES" << endl; if (f == 0) cout << "NO" << endl; return 0; }