n = gets.to_i m = gets.to_i n /= 1000 ans = n / m puts(ans * 1000)