#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;
    }
    return 0;
}    
/**************************************************************
	Problem: 1635
	User: linmiaoling
	Language: C++
	Result: Accepted
	Time:14 ms
	Memory:2072 kb
****************************************************************/