a,b,c=$<.map &:to_i;$><<(b*c/(x=Rational(a*b,b-a))/(c-b)).numerator*x