A, B, C = map(int, input().split()) lo, hi = 0, 10**18 while lo < hi: mid = (lo + hi) // 2 money = (mid - (mid // A)) + ((mid // A) * B) if money < C: lo = mid + 1 else: hi = mid print(lo)