#include using namespace std; typedef long long ll; signed main(){ ios::sync_with_stdio(false); cin.tie(0); ll a,b,c; cin>>a>>b>>c; ll ans=0; ll get=b+a-1; ans = c/get*a; if(c%get){ ans+=c%get; } cout<