A, B, C = map(int, input().split()) d = (A-1) + B u, v = divmod(C, d) print(u*A + v)