#include #include #include #include #include #include #include #include #include #include #include #include #define vll vector #define vvvl vector #define vvl vector> #define VV(a, b, c, d) vector>(a, vector(b, c)) #define VVV(a, b, c, d) vector(a, vvl(b, vll (c, d))); #define re(c, b) for(ll c=0;c> n; vll b(n);get(b); ll t = b[0]; re(i, n) b[i] *= (n-1); vll ans(n, 0); ll S = 0; re(i, n) { ans[i] = b[0] - b[i]; S += ans[i]; } for(ll i=-1000000;i<=1000000;i++){ ll num = S + i * (n-1); if(num%(n-1)==0&&num/(n-1)==t){ for(int j=0;j