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