def check(a, b, c): 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 return ok a, b, c = map(int, input().split()) print(check(a, b, c))