#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, x, num, sum = 0;
  cin >> n >> x;
  while (n--) {
    cin >> num;
    sum += num;
  }
  if (sum < 0) sum *= -1;
  int out = 0;
  while (sum > 0) {
    out++;
    sum -= x;
  }
  cout << out;
  return 0;
}
