#include <iostream>
using namespace std;

int main() { 
	int e, f, c;
	cin >> e >> f >> c;
	cout << (int)((e + f)/(c - 1 + 0.0001));
	return 0;
}