#include <bits/stdc++.h>
using namespace std;
int x, n, i, a[1001], k;
int main() {
  cin >> n >> x;
  for (i = 1; i <= n; i++) cin >> a[i], k += a[i];
  if (k == 0)
    cout << 0;
  else if (abs(k) > x) {
    if (abs(k) % x != 0)
      cout << 1 + ceil(abs(k) / x);
    else
      cout << ceil(abs(k) / x);
  } else
    cout << 1;
}
