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