#!/usr/bin/ruby
n=gets.to_i/1000
m=gets.to_i
p n/m*1000