#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using vi = vector<int>;
const int Z = int(1e5 + 1);
const int inf = int(2e9 + 1);
const ll llinf = ll(2e18 + 1);
const ll mod = ll(1e9 + 7);
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  int n, x;
  cin >> n >> x;
  int sum = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    sum += a;
  }
  sum = abs(sum);
  cout << sum / x + int(sum % x != 0) << endl;
  return 0;
}
