#include using namespace std; int s,t; char c; main() { cin>>s>>t>>c; cout<<((c=='<'?s'?s>t:s==t)?"YES":"NO")<