#include #include using namespace std; int main() { long long n,a,b; b=0; cin>>n>>a; for(int i=0;i>x; b+=x; } a*=b;cout<<(a==b?"YES":"NO")<