#include using namespace std; #define rep(i,n) for (int i = 0; i < (n); ++i) #define FOR(i,a,b) for(ll i=a;i<=ll(b);i++) #define yes() cout << "Yes" << endl #define no() cout << "No" << endl using ll = long long; using ld = long double; ll gcd(ll x, ll y) { return (x % y)? gcd(y, x % y): y; } ll lcm(ll x, ll y) { return x / gcd(x, y) * y; } template inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; } template inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; } const int MOD = 1000000007; const long long INF = 1LL <<60; using P = pair; using Graph = vector>; using vi = vector; using vvi = vector; using vl = vector; using vs = vector; //小数の桁数の出力指定 //cout<>n>>m; int sum=0; int a[n]; rep(i,n){ cin>>a[i]; sum+=a[i]; } sum/=n; sum/=m; int cnt=0; bool fg=true; rep(i,n){ cnt+=(a[i]-sum); if(cnt<0)fg=false; } //sumにできるか? if(fg)cout<