package m.shin; import java.util.Scanner; public class Con128 { public static void main(String[] args) { Scanner s = new Scanner(System.in); long N = s.nextLong(); int M = s.nextInt(); s.close(); int max = 0; for(int i = 1;;i++){ if(i * M * 1000 <= N){ max++; }else{ break; } } System.out.println(max * 1000); } }