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