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