#include using namespace std; void fast_io() { ios_base::sync_with_stdio(false); cin.tie(nullptr); } int main() { fast_io(); int s, t; char c; cin >> s >> t >> c; char d = (s < t ? '<' : (s > t ? '>' : '=')); cout << (c == d ? "YES\n" : "NO\n"); }