#include <bits/stdc++.h>
using namespace std;
int main(int argc, char** argv) {
  int n, x, val, sum = 0;
  cin >> n >> x;
  for (int i = 0; i < n; i++) {
    cin >> val;
    sum += val;
  }
  cout << ceil(abs(sum) / (x + 0.0)) << endl;
  return 0;
}
