#include using namespace std; int main(){ int n; long a,m,diff=0; cin >> n >> a; for(int i=0;i> m; diff += (m-a); } cout << (diff!=0?"NO":"YES") << endl; }