#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, k, m;
  cin >> n >> k;
  int a[n];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  m = n / k;
  if (n % k != 0) {
    m = m + (n - k * m);
  }
  cout << m << endl;
  return 0;
}
