#include <bits/stdc++.h>
using namespace std;
const int inf = 1e9;
const double eps = 0;
const int ms = 0;
const int md = 0;
int n;
long long k;
int main() {
  cin >> n >> k;
  long long ans = 0, sum = 0;
  for (__typeof(0) i = 0; i < n; i++) {
    long long x;
    cin >> x;
    sum += x;
  }
  ans = sum / k;
  if (sum % k > 0) ans++;
  cout << ans << endl;
  return 0;
}
