import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); long numA = Integer.parseInt(br.readLine()); long numB = Integer.parseInt(br.readLine()); System.out.println(numA/(numB*1000)); } }