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