#include #include #include #include using namespace std; int main(){ int x, y, z; cin >> x >> y >> z; double r = (y - z) / double(x - y); double d = y - r * x; cout << round(r * z + d) << endl; }