#include <bits/stdc++.h>   using namespace std;   int main() {     int n, x, m = 0, sum = 0;     cin >> n >> x;     int *arr = new int[n];     for (long long i = 0; i < n; i++) cin >> arr[i], sum += arr[i];     if (sum > 0)       while (sum > 0) {         sum -= x;         m++;       }     else       while (sum < 0) {         sum += x;         m++;       }     cout << m;     return 0;   }   