a, b, c = map(int, input().split()) x = a-1+b y = int(c/x) z = int(c%x) print(y*a+min(z,a))