#include int main() { long long a, b, c; std::cin >> a >> b >> c; long long mul = (a - 1) + b; long long ret = (c / mul) * a; ret += c - (ret * mul); std::cout << ret << std::endl; return 0; }