#include<bits/stdc++.h> using namespace std; int x,y,t; int main(){ cin>>x>>y>>t; cout<<(y*x)/(y-x)*y+y-1; return 0; }