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