#include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; #define Would #define you const int INF = 999999999; const int MOD = 1e9 + 7; const double pi = 3.141592653589793238; int main() { int a, b, c, d, e, f; cin >> a >> b >> c >> d >> e >> f; if (a > d) { cout << "YES" << endl; return 0; } else if (d > a) { cout << "NO" << endl; return 0; } if (b > e) { cout << "YES" << endl; return 0; } else if (e > b) { cout << "NO" << endl; return 0; } if (c > f) { cout << "YES" << endl; return 0; } else if (f > c) { cout << "NO" << endl; return 0; } cout << "YES" << endl; return 0; }