#include <bits/stdc++.h>
using namespace std;

int main() {
  
  int N;
  int W;
  cin >> N >> W;
  int count = 0;
  int weight = 0;
  while (weight <= N-W){
    count++;
    weight += W;
  }

  cout << count << endl;

}

#include <bits/stdc++.h>
using namespace std;

#define REP(i, n) for(int i = 0; i < (int)(n); ++i)
#define FOR(i, a, b) for(int i = (int)(a); i <= (int)(b); ++i)
#define FORR(i, a, b) for(int i = (int)(a); i >= (int)(b); --i)
#define ALL(c) (c).begin(), (c).end()

using ll = long long;
using VI = vector<int>;
using VL = vector<ll>;
using VD = vector<double>;
using VII = vector<VI>;
using VLL = vector<VL>;
using VDD = vector<VD>;
using P = pair<int, int>;
using PL = pair<ll, ll>;

void solve(long long N, long long W) {
  cout << N / W << endl;
}

int main() {
  long long N;
  scanf("%lld", &N);
  long long W;
  scanf("%lld", &W);
  solve(N, W);
  return 0;
}
