#include <bits/stdc++.h>
using namespace std;
int n;
int x;
int sum;
int main() {
  scanf("%d%d", &n, &x);
  for (int i = 1; i <= n; i++) {
    int val;
    scanf("%d", &val);
    sum += val;
  }
  if (sum < 0) {
    sum = -sum;
    int ans = sum / x;
    if (sum % x) ans++;
    printf("%d\n", ans);
  } else if (sum == 0) {
    puts("0");
  } else {
    int ans = sum / x;
    if (sum % x) ans++;
    printf("%d\n", ans);
  }
  return 0;
}
