#include using namespace std; int main() { int A; int B; int C; cin >> A >> B >> C; int sum = 0; int age = 1; while (sum < C) { if (age % A == 0) { sum += B; age += 1; } else { sum += 1; age += 1; } } cout << age-1 << endl; }