a, b, c = map(int, input().split()) ng, ok = 0, c while (ok-ng) > 1: mid = (ng+ok)//2 total = mid//a*b + mid-mid//a if total >= c: ok = mid else: ng = mid print(ok)