#include using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(nullptr); int64_t A, B, C; cin >> A >> B >> C; int64_t D = A - 1 + B; int64_t x = C / D; cout << x * A + (C - x * D) << '\n'; return 0; }