A, B, C = map(int, input().split()) left = 0 right = 1000000000000000000 while right - left > 1: mid = (left + right) // 2 if mid - mid // A + (mid // A) * B >= C: right = mid else: left = mid print(right)