#include <bits/stdc++.h>
using namespace std;
vector<int> v;
void solve() {
  int n, x, s = 0, f;
  cin >> n >> x;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    s += a[i];
  }
  f = abs(s) / abs(x);
  if (abs(s) % abs(x) != 0) {
    cout << f + 1 << endl;
    return;
  }
  cout << f << endl;
  return;
}
int main() {
  long long t = 1;
  while (t--) {
    solve();
  }
  return 0;
}
