using System; namespace StudyApp { class Program { static void Main(string[] args) { int totalWork = int.Parse(Console.ReadLine()); int days = int.Parse(Console.ReadLine()); int work = 0; while (totalWork > 0) { work = totalWork / (days * days); totalWork -= work; days--; } Console.WriteLine(work); } } }