#include using namespace std; int a,b,c; int main(){ cin>>a>>b>>c; cout<<(double)(b-c)/(a-b)*(c-a)+b<<"\n"; return 0; }