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