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