V, T, P = map(int, input().split()) S = V + (V - 1) // (T - 1) print(S * (P + 1) + 2)