#include using namespace std; #define int long long signed main(){ string S,T; cin>>S>>T; if(T <= S) cout<<"YES"<