array = gets.split
answer_i = array[0].to_i/array[1].to_i
remainder = array[0].to_i%array[1].to_i
answer_f = array[0].to_f/array[1].to_f

answer_f = answer_f.to_s
if answer_f.length < 7
 answer_f = answer_f + "0000"
end

puts "#{answer_i} #{remainder} #{answer_f}"