#include using namespace std; int main(void){ long long A,B,C; cin >> A >> B >> C; long long block; block = (A - 1) + B; if(A == 1) { if(C % B == 0) { cout << C / B; } else { cout << C / B + 1; } } else { long long remain,block; block = (A - 1) + B; remain = C % block; if(remain == 0) { cout << (C / block) * A; } else { cout << (C / block) * A + remain; } } }