#include<bits/stdc++.h> using namespace std; int main(){ int a=2,b=5,c=3,o,p,j,k; cin>>p>>j>>k>>o; p=a*p; j=b*j; k=c*k; if(o-(p+j+k)>=0) { cout<<"Yes"<<endl; cout<<o-(p+j+k); } else { cout<<"NO"; } return 0; }