#include #include #include #include #include #include #include using namespace std; typedef long long ll; ll V, T, P; int main(){ ios::sync_with_stdio(false); cin.tie(0); cout << setprecision(10) << fixed; cin >> V >> T >> P; ll ans = (P+1)*V; ll rem = (P+1)*V; while(true){ ll m = rem/T; ans += m; rem = m+rem%T; if(rem < T) break; } cout << ans+1 << endl; }