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