#include #include using namespace std; int main(){ int a0, b0, c0, a1, b1, c1; scanf("%d.%d.%d", &a0, &b0, &c0); scanf("%d.%d.%d", &a1, &b1, &c1); int p0 = a0 * 400 + b0 * 20 + c0, p1 = a1 * 400 + b1 * 20 + c1; puts(p0 >= p1 ? "YES" : "NO"); }