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