def main(): A, B, C = map(int, input().split()) cycle_ = C // (A - 1 + B) rest = C - cycle_ * (A - 1 + B) print(cycle_ * A + rest) if __name__ == "__main__": main()