#include #include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int S, T; char c; cin >> S >> T >> c; bool correct; if (c == '<') correct = S < T; else if (c == '>') correct = S > T; else correct = S == T; cout << (correct? "YES" : "NO") << endl; return 0; }