fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. int a, b, c, y, x;
  6. std::cin >> a >> b >> c >> y >> x;
  7. if ((a<=y && b<=x) || (a<=x && b<=y) || (a<=y && c<=x) || (a<=x && c<=y) || (b<=y && c<=x) || (b<=x && c<=y)) cout << "YES";
  8. else {
  9. cout << "NO";
  10. }
  11. return 0;
  12. }
Success #stdin #stdout 0s 15232KB
stdin
31 11 60 8 60
stdout
NO