#include using namespace std; int main(void) { string s, t; cin >> s >> t; cout << (t <= s ? "YES" : "NO") << endl; return 0; }