#include int main() { long long h[4], d[4]; // Input lengths of legs for (int i = 0; i < 4; ++i) { std::cin >> h[i]; } // Input lengths to be cut for (int i = 0; i < 4; ++i) { std::cin >> d[i]; } // Process cuts for (int i = 0; i < 4; ++i) { // Check if cut length is greater than leg length if (d[i] > h[i]) { std::cout << "ERROR" << std::endl; return 0; } // Update leg length after the cut h[i] -= d[i]; } // Check if the table will be parallel if ((h[0] >= 2 * h[1] || h[1] >= 2 * h[0]) && (h[2] >= 2 * h[3] || h[3] >= 2 * h[2])) { std::cout << "NO" << std::endl; } else { std::cout << "YES" << std::endl; } return 0;}