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