#include using namespace std; int main(){ string S, T; char c; cin >> S >> T >> c; if(c == '<') cout << (S < T ? "YES" : "NO"); if(c == '>') cout << (S > T ? "YES" : "NO"); if(c == '=') cout << (S == T ? "YES" : "NO"); }