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