#include #include "bits/stdc++.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include typedef long long ll; const int INF = 1e8; #define rep(i,n) for(ll i=0;i<(ll)(n);i++) using namespace std; typedef pair P; int main() { long long b1=0,b2=0,b3=0; cin>>b1>>b2>>b3; /* int r = (b2-b3)/(b1-b2); int d = b2-r*b1;*/ cout<<((b2-b3)/(b1-b2)*(b3-b1)+b2)<