using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Otosidama { class Program { static void Main(string[] args) { var str0 = decimal.Parse(Console.ReadLine()); var str1 = decimal.Parse(Console.ReadLine()); var temp = (int)(str0 / 1000); var temp2 = (int)(temp / str1)*1000; Console.WriteLine(temp2); } } }