a,b,c = map(int,input().split(' ')) if a == b: print(a) else: r = (c - b) / (b - a) d = c - r * b print(int(r * c + d))