#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, c, res1, res2, ans;
  cin >> a >> b >> c;
  res1 = c / b;
  res2 = a / b;
  ans = res1 + res2;
  cout << ans << endl;
  return 0;
}
