#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, s, r, a;
  cin >> n;
  cin >> x;
  s = 0;
  while (n != 0) {
    cin >> a;
    s = s + a;
    n = n - 1;
  }
  if (s < 0) s = -s;
  if (s % x == 0)
    r = s / x;
  else
    r = (s / x) + 1;
  cout << r;
}
