V, T, P = map(int, input().split()) V = V * (P + 1) ans = V while V > 0: n = (V + T - 1)//T ans += n V += n - n * T print(ans)