#include using namespace std; int main() { int64_t a, b, c; cin >> a >> b >> c; cout << a * (c / (a - 1 + b)) + c % (a - 1 + b) << endl; return 0; }