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