#include <bits/stdc++.h>
using namespace std;
int ans, sum, x, n, q;
int main()
{
scanf("%d %d", &n, &x);
sum = 0;
for (int i = 0; i < n; i++)
{
cin>>q;
sum += q;
}
sum = abs(sum);
ans = sum / x;
if (sum % x != 0) ans++;
cout<<ans<<endl;
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IGFucywgc3VtLCB4LCBuLCBxOwoKaW50IG1haW4oKQoKewogICAgc2NhbmYoIiVkICVkIiwgJm4sICZ4KTsKICAgIHN1bSA9IDA7CiAgICBmb3IgKGludCBpID0gMDsgaSA8IG47IGkrKykKICAgIHsKICAgICAgICBjaW4+PnE7CiAgICAgICAgc3VtICs9IHE7CiAgICB9CiAgICBzdW0gPSBhYnMoc3VtKTsKICAgIGFucyA9IHN1bSAvIHg7CiAgICBpZiAoc3VtICUgeCAhPSAwKSBhbnMrKzsKICAgIGNvdXQ8PGFuczw8ZW5kbDsKfQ==