#include using namespace std; typedef unsigned long long ll; ll a, b, c; ll binarySearch(ll left, ll right){ while(left+1 < right){ ll mid = (left+right)/2; ll get = (mid-mid/a) + mid/a*b; if(get >= c) right = mid; else left = mid; } return right; } int main(){ cin >> a >> b >> c; cout << binarySearch(0, c) << endl; return 0; }