#include using namespace std; using ll = long long; #define fi first #define se second #define all(a) a.begin(),a.end() int main(){ int s,t; char c; cin >> s >> t >> c; if(c=='<') cout << (s') cout << (s>t ? "YES\n" : "NO\n"); else cout << (s==t ? "YES\n" : "NO\n"); return 0; }