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