a,b,c=map(int,raw_input().split()) assert -10**5 <= a <= 10**5 assert -10**5 <= b <= 10**5 assert -10**5 <= c <= 10**5 assert a != b assert b != c print (c*(c-a)+b*(b-c))/(b-a)