#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, i, j = 0, s = 0, x, a[1000];
  cin >> n >> x;
  for (i = 0; i < n; i++) {
    cin >> a[i];
    s += a[i];
  }
  s = abs(s);
  while (s > 0) {
    s -= x;
    j++;
  }
  cout << j;
  return 0;
}
