using System; using System.Collections.Generic; using static System.Console; namespace ConsoleApp { class Program { static void Main(string[] args) { double W = int.Parse(ReadLine()); int D = int.Parse(ReadLine()); double a; while(D > 1) { a = Math.Pow(D, 2); W -= Math.Floor(W / a); D--; } WriteLine(W); } } }