import java.util.Scanner; public class Main { public static void main(String[] a) { Scanner s = new Scanner(System.in); System.out.println(Long.parseLong(s.next())/1000/s.nextLong()*1000); } }