#include using namespace std; #define ll long long int main(){ int a, b; char c; cin >> a >> b >> c; if(c == '>') cout << (a > b ? "YES" : "NO") << "\n"; else if(c == '<') cout << (a < b ? "YES" : "NO") << "\n"; else cout << (a == b ? "YES" : "NO") << "\n"; return 0; }