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