def solve(): V, T, P = map(int, input().split()) total = V*(P+1) ans = 1+total//(T-1)*T+total%(T-1) if total%(T-1)==3: ans += 1 return ans print(solve())