#include <bits/stdc++.h> using namespace std; #include <math.h> #include <iomanip> #include <cstdint> #include <string> #include <sstream> template<class T> inline bool chmax(T& a, T b) { if (a <= b) { a = b; return 1; } return 0; } template<class T> inline bool chmin(T& a, T b) { if (a >= b) { a = b; return 1; } return 0; } #define rep(i,n) for (int i = 0; i < (n); ++i) typedef long long ll; using P=pair<ll,ll>; const int INF=1001001001; const int mod=998244353; bool f(int s,int t,char c){ if(c=='<'){return s<t;} if(c=='>'){return s>t;} if(c=='='){return s==t;} } void solve(){ int s,t; char c; cin>>s>>t>>c; if(f(s,t,c)){cout<<"YES"<<endl;} else{cout<<"NO"<<endl;} } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); solve(); return 0; }