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