#include #include using namespace std; int func(string s) { for (int i = 0; i < 2; ++i) { size_t a = s.find('.'); s.erase(s.begin() + a); } return stoi(s); } int main() { string s1, s2; cin >> s1 >> s2; int num1, num2; num1 = func(s1); num2 = func(s2); if (num1 >= num2) cout << "YES" << endl; else cout << "NO" << endl; return 0; }