#include using namespace std; int main() { int S, T; char C; cin >> S >> T >> C; if(C == '<') { if(S < T) cout << "YES" << endl; else cout << "NO" << endl; } else if(C == '=') { if(S == T) cout << "YES" << endl; else cout << "NO" << endl; } else { if(S > T) cout << "YES" << endl; else cout << "NO" << endl; } return 0; }