a, b, c = (int(i) for i in input().split()) sum = 1 * (a - 1) + b over = int(c / sum) ama = c % sum print(over * a + ama)