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