#include #include #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; int func(const string &str) { vector v; boost::split(v, str, boost::is_any_of(".")); return stoi(v[0]) * 100000 + stoi(v[1]) * 1000 + stoi(v[2]); } int main() { cin.tie(0); ios::sync_with_stdio(false); string a, b; cin >> a >> b; string ans = "YES"; if (func(a) < func(b)) ans = "NO"; cout << ans << endl; getchar(); }