#include <bits/stdc++.h>
int abs(int x) { return (x < 0) ? (-x) : (x); }
int main() {
  int n, x;
  scanf("%d %d", &n, &x);
  int sum = 0;
  int a;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a);
    sum += a;
  }
  sum = abs(sum);
  int answer = (sum / x) + ((sum % x == 0) ? 0 : 1);
  printf("%d", answer);
  return 0;
}
