#include #include #include #include #include #include #include #include #include #include #include #define INF 1000000000ll #define MOD 1000000007ll #define EPS 1e-10 #define REP(i,m) for(long long i=0; i P; typedef long double ld; int main() { cin.tie(0); ios::sync_with_stdio(false); ll a,b,c; cin>>a>>b>>c; __int128 lb=1, ub=1000000000000000001ll; while(ub-lb>1) { __int128 mid=(lb+ub)/2; __int128 money=mid/a*b+(mid-mid/a); if(money>=c) ub=mid; else lb=mid; } cout<<(ll)ub<