#include using namespace std; using ll = long long; constexpr char newl = '\n'; int main() { cin.tie(nullptr); ios::sync_with_stdio(false); ll v, t, p; cin >> v >> t >> p; // (T - 1) * (x - 1) + 1 ll hoge = v * (p + 1); ll foo = (hoge - 1) / (t - 1) + 1; //cerr << foo << newl; ll bar = (t - 1) * (foo - 1) % v; cout << 1 + (foo - 1) * t + (v - bar) << newl; return 0; }