#include <bits/stdc++.h>
using namespace std;
int key[1080];
int main() {
  int n, x;
  while (scanf("%d%d", &n, &x) == 2) {
    int sum = 0;
    for (int i = 1; i <= n; i++) {
      scanf("%d", &key[i]);
      sum += key[i];
    }
    sum = abs(sum);
    int ans = sum / x;
    if (sum % x) ans++;
    printf("%d\n", ans);
  }
  return 0;
}
