#include <bits/stdc++.h>
int main() {
  int n, x;
  scanf("%d %d", &n, &x);
  int sum = 0, tmp;
  while (n-- > 0) {
    scanf("%d", &tmp);
    sum += tmp;
  }
  if (sum < 0) sum = -sum;
  int need = sum / x;
  if (x * need < sum) need++;
  printf("%d\n", need);
}
