#include <bits/stdc++.h>
int main() {
  int n, x, i, m = 0, count = 0;
  scanf("%d %d", &n, &x);
  int a[n + 1];
  for (i = 0; i < n; i++) {
    scanf("%d", &a[i]);
    m = m + a[i];
  }
  if (m < 0) {
    m = -m;
  }
  if (m % x == 0) {
    count = m / x;
  } else {
    count = (m / x) + 1;
  }
  printf("%d", count);
  return 0;
}
