s;a;main(x){for(scanf("%*d%d",&a);~scanf("%d",&x);s+=x-a);s=!puts(s?"NO":"YES");}