#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, i, j, r, sum = 0, ans;
  cin >> n >> x;
  for (i = 0; i < n; ++i) {
    cin >> j;
    sum += j;
  }
  sum = abs(sum);
  ans = sum / x;
  if (sum % x) ans++;
  cout << ans << endl;
  return 0;
}
