#include <bits/stdc++.h>
int main() {
  int n, x;
  while (scanf("%d%d", &n, &x) != EOF) {
    int sum = 0, a, ans;
    for (int i = 0; i < n; i++) {
      scanf("%d", &a);
      sum += a;
    }
    if (sum < 0) sum = -sum;
    ans = sum / x;
    if (sum % x) ans++;
    printf("%d\n", ans);
  }
  return 0;
}
