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