using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Code { class Program { static void Main(string[] args) { string line = Console.ReadLine(); string[] values = line.Split(' '); long A = long.Parse(values[0]); long B = long.Parse(values[1]); long C = long.Parse(values[2]); long year = 1; long sum = 0; while (true) { if (year % A == 0) sum += B; else sum += 1; if (sum >= C) break; year++; } Console.WriteLine(year); } } }