using System; using System.Linq; namespace yukicoder { class Program { static void Main(string[] args) { int W = int.Parse(Console.ReadLine()); int D = int.Parse(Console.ReadLine()); int[] chk = new int[D]; int remainingDay = D; int remainingWork = W; for(int i = 0;i < D;i++) { int todayWork = remainingWork / (remainingDay * remainingDay); chk[i] = todayWork; --remainingDay; remainingWork -= todayWork; } Console.WriteLine(chk[D-1]); } } }