import java.util.*; public class Otoshidama{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); long n,m,res; n = sc.nextLong(); m = sc.nextLong(); res = n/(m*1000); System.out.println(res*1000); } }