#include <bits/stdc++.h>
const int N = 1e6 + 3;
const long long INF = 1e18 + 100;
const int inf = 1e9 + 100;
const int MOD = 1e9 + 7;
using namespace std;
int a[N];
int main() {
  ios_base::sync_with_stdio(0);
  int n;
  int x;
  cin >> n >> x;
  int sum = 0;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    sum += a[i];
  }
  sum = abs(sum);
  int ans = 0;
  while (sum != 0) {
    if (sum - x >= 0) {
      sum -= x;
    } else {
      sum = 0;
    }
    ans++;
  }
  cout << ans;
}
