#include #define rep(i,n) for(int i=0;i<(n);++i) #define ALL(A) A.begin(), A.end() using namespace std; typedef long long ll; typedef pair P; void replace_dot(string& s){ int n = s.length(); rep (i, n){ if (s[i] == '.') s[i] = ' '; } // end rep } ll get_num(string s){ stringstream ss(s); vector val; val.clear(); int v; while(ss >> v){ val.push_back(v); } // end while ll res = 0LL; rep(i, val.size()){ res += (ll)val[i]; res *= 1000LL; } // end rep return res; } int main() { ios_base::sync_with_stdio(0); cin.tie(0); string zero; cin >> zero; string one; cin >> one; replace_dot(zero); replace_dot(one); ll n_zero = get_num(zero); ll n_one = get_num(one); cout << (n_zero >= n_one ? "YES" : "NO") << endl; return 0; }