#include <iostream>
using namespace std;
int main()
{
int w;
cout << "Введите W:" ;
cin >> w;
int n;
cout << "Введите N:" ;
cin >> n;
int wx;
cout << "Введите W_X:" ;
cin >> wx;
int nx;
cout << "Введите N_x:" ;
cin >> nx;
int wy;
cout << "Введите W_y:" ;
cin >> wy;
int ny;
cout << "Введите N_Y:" ;
cin >> ny;
int a, b,c,e
if ( wx >= w && nx >= n && wy >= w && ny >= n){
cout << "YES";
} else {
cout << "NO";
}
if ( wx > w ){
a = (wx - w) ;
cout << a "литров воды для X";
} else {
cout << "";
}
if ( nx > n ){
b = (nx - n) ;
cout << b "единиц питательных веществ для X";
} else {
cout << "";
}
if ( wy > w ){
c = (wy - w) ;
cout << c "литров воды для Y";
} else {
cout << "";
}
if ( ny > wn ){
e = (ny - n) ;
cout << e "единиц питательных веществ для Y";
} else {
cout << "";
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkKewogICAgc2V0bG9jYWxlIChMQ19BTEwsICJSdXNzaWFuIik7CiAgICBpbnQgdzsKICAgIGNvdXQgPDwgItCS0LLQtdC00LjRgtC1IFc6IiA7CiAgICBjaW4gPj4gdzsKICAgIGludCBuOwogICAgY291dCA8PCAi0JLQstC10LTQuNGC0LUgTjoiIDsKICAgIGNpbiA+PiBuOwogICAgaW50IHd4OwogICAgY291dCA8PCAi0JLQstC10LTQuNGC0LUgV19YOiIgOwogICAgY2luID4+IHd4OwogICAgaW50IG54OwogICAgY291dCA8PCAi0JLQstC10LTQuNGC0LUgTl94OiIgOwogICAgY2luID4+IG54OwogICAgaW50IHd5OwogICAgY291dCA8PCAi0JLQstC10LTQuNGC0LUgV195OiIgOwogICAgY2luID4+IHd5OwogICAgaW50IG55OwogICAgY291dCA8PCAi0JLQstC10LTQuNGC0LUgTl9ZOiIgOwogICAgY2luID4+IG55OwoKICAgIGludCBhLCBiLGMsZQoKICAgIGlmICggd3ggPj0gdyAmJiBueCA+PSBuICYmIHd5ID49IHcgJiYgbnkgPj0gbil7CiAgICAgICAgY291dCA8PCAiWUVTIjsKICAgIH0gZWxzZSB7CiAgICAgICAgICAgIGNvdXQgPDwgIk5PIjsKICAgICAgICAgICAgfQoKICAgIGlmICggd3ggPiB3ICl7CiAgICAgICAgYSA9ICh3eCAtIHcpIDsKICAgICAgICBjb3V0IDw8IGEgItC70LjRgtGA0L7QsiDQstC+0LTRiyDQtNC70Y8gWCI7CiAgICB9IGVsc2UgewogICAgICAgICAgICBjb3V0IDw8ICIiOwogICAgfQoKICAgIGlmICggbnggPiBuICl7CiAgICAgICAgYiA9IChueCAtIG4pIDsKICAgICAgICBjb3V0IDw8IGIgItC10LTQuNC90LjRhiDQv9C40YLQsNGC0LXQu9GM0L3Ri9GFINCy0LXRidC10YHRgtCyINC00LvRjyBYIjsKICAgIH0gICBlbHNlIHsKICAgICAgICAgICAgY291dCA8PCAiIjsKICAgIH0KCiAgICBpZiAoIHd5ID4gdyApewogICAgICAgIGMgPSAod3kgLSB3KSA7CiAgICAgICAgY291dCA8PCBjICLQu9C40YLRgNC+0LIg0LLQvtC00Ysg0LTQu9GPIFkiOwogICAgfSBlbHNlIHsKICAgICAgICAgICAgY291dCA8PCAiIjsKICAgIH0KCiAgICBpZiAoIG55ID4gd24gKXsKICAgICAgICBlID0gKG55IC0gbikgOwogICAgICAgIGNvdXQgPDwgZSAi0LXQtNC40L3QuNGGINC/0LjRgtCw0YLQtdC70YzQvdGL0YUg0LLQtdGJ0LXRgdGC0LIg0LTQu9GPIFkiOwogICAgfSBlbHNlIHsKICAgICAgICAgICAgY291dCA8PCAiIjsKICAgIH0KCgoKCgogICAgcmV0dXJuIDA7Cn0K