#include <iostream>
using namespace std;
int x, y, z, k;
int main() {
cin >> x;
cin >> y;
cin >> z;
cin >> k;
if (2 * x + 5 * y + 3 * z <= k) {
cout << "Yes" << endl;
cout << k - 2 * x - 5 * y - 3 * z;
} else {
cout << "No" << endl;
cout << 2 * x + 5 * y + 3 * z - k;
}
return 0;
}
#include <iostream>
using namespace std;
int x, y, z, k;
int main() {
cin >> x;
cin >> y;
cin >> z;
cin >> k;
if (2 * x + 5 * y + 3 * z <= k) {
cout << "Yes" << endl;
cout << k - 2 * x - 5 * y - 3 * z;
} else {
cout << "No" << endl;
cout << 2 * x + 5 * y + 3 * z - k;
}
return 0;
}