#include <iostream>
using namespace std;
int main() {
int n, a, b, c;
cin >> n >> a >> b >> c;
int total_cost = a + b + c;
int difference = abs(n - total_cost);
if (n >= total_cost) {
cout << difference << " YES" << endl;
} else {
cout << difference << " NO" << endl;
}
}
/**************************************************************
Problem: 1635
User: wangyiyang
Language: C++
Result: Accepted
Time:13 ms
Memory:2072 kb
****************************************************************/