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