fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main ()
  4. {
  5. int x,y,z;
  6. int a,b,c;
  7. cin>>x>>y>>z;
  8. cin>>a>>b>>c;
  9. if(b>=x && b<=z && c<=y && c>=a)
  10. cout<<"YES";
  11. else
  12. cout<<"NO";
  13.  
  14. return 0;
  15. }
Success #stdin #stdout 0s 4452KB
stdin
Standard input is empty
stdout
NO