#include #include using namespace std; int main(){ string one,two; cin >> one >> two; cout << (one >= two ? "YES" : "NO") << endl; }