#include using namespace std; int main(){ long long int a,b,c,money,age; cin>>a>>b>>c; money = 0; age = a*(c/(a+b-1)); c = c%(a+b-1); if(c<=a-1)age+=c; else age+=a; cout<