#include using namespace std; int main(){ long long v,t,p;cin>>v>>t>>p; cout << 2+((v*(p+1)-1)%(t-1)) + ((v*(p+1)-1)/(t-1))*t << endl; }