#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, sum = 0, temp;
  cin >> n;
  cin >> x;
  for (int i = 0; i < n; i++) {
    cin >> temp;
    sum = sum + temp;
  }
  sum = fabs(sum);
  if (sum == 0) {
    cout << 0;
    return 0;
  }
  int count = 0;
  while (sum > 0) {
    sum -= x;
    count++;
  }
  cout << count;
  return 0;
}
