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