#include using namespace std; #define int long long templatebool chmax(T &a, const T &b) { if (abool chmin(T &a, const T &b) { if (bT binarySearch(T ok, T ng, auto check){ while(ok-ng > 1){ T mid = (ok+ng)/2; if(check(mid)) ok = mid; else ng = mid; } return ok; } signed main(){ int aa, bb, cc; cin >> aa >> bb >> cc; __int128 a = aa, b = bb, c = cc; cout << (int)binarySearch(c, (__int128)0, [&](int mid){ return (mid+(b-1)*(mid/a) >= c); }) << endl; return 0; }