let input:[Int] = readLine()!.split(separator: " ").map{Int($0)!} var money:Int = 0 var age:Int = 1 while true { if age % input[0] != 0 { money += 1 } else { money += input[1] } if money >= input[2] { break } age += 1 } print(age)