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