V, T, P = map(int, input().split()) if T == 1: x_max = V else: x_max = V // (T - 1) + 1 total = (P + 1) * (V + x_max) print(total)