a, b, c = map(int, input().split()) b -= 1 l = 0 r = c while r - l > 1: m = (r + l) // 2 if m // a * b + m < c: l = m else: r = m print(r)