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