#include <bits/stdc++.h>
using namespace std;
class Solution {
 public:
  void solve(std::istream& in, std::ostream& out) {
    int n, x;
    in >> n >> x;
    int sum = 0;
    for (int i = 1; i <= n; i++) {
      int num;
      in >> num;
      sum += num;
    }
    sum = abs(sum);
    int cnt = 0;
    while (sum > 0) {
      if (sum >= x) {
        sum -= x;
        cnt++;
      } else {
        sum = 0;
        cnt++;
      }
    }
    out << cnt << '\n';
  }
};
void solve(std::istream& in, std::ostream& out) {
  out << fixed << std::setprecision(6);
  Solution solution;
  solution.solve(in, out);
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  istream& in = cin;
  ostream& out = cout;
  solve(in, out);
  return 0;
}
