using System; namespace yukicoder { class Program { static void Main(string[] args) { //予算 long N = long.Parse(Console.ReadLine()); //人数 long M = long.Parse(Console.ReadLine()); long ans = 0; long a = 0; long b = 0; //一人あたりの金額を人数分かけた金額 a = 1000 * M; //1000円札の枚数 b = N / a; //各一人貰える金額 ans = 1000 * b; Console.WriteLine(ans); } } }