#include #define rep(i, n) for (int i = 0; i < n; ++i) typedef long long ll; using namespace std; int main() { int a, b; string s; cin >> a >> b >> s; bool flag = true; if (s == ">" && a <= b) flag = false; else if (s == "<" && a >= b) flag = false; else if (s == "=" && a != b) flag = false; flag ? cout << "YES" : cout << "NO"; cout << endl; return 0; }