#include #include using namespace std; int main(){ string ostr,nstr; string old = "",noww =""; cin >> ostr; cin >> nstr; int j=2; for(int i=0 ;i< ostr.size();i++){ if(ostr[i] == '.'){ j--; }else{ old += ostr[i]; } } for(int i=0 ;i< nstr.size();i++){ if(nstr[i] == '.'){ j--; }else{ noww += nstr[i]; } } int iold,inoww; iold = stoi(old); inoww = stoi(noww); if(old >= noww){ cout << "YES" << endl; }else{ cout << "NO" << endl; } }