#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: yangjunwen
	Language: C++
	Result: Accepted
	Time:11 ms
	Memory:2072 kb
****************************************************************/