MODE = "stdio"

line = Array.new

if(defined? MODE)
  line = STDIN.read.split("\n")
else
  tmp = "\
  3 2
  ".split("\n")
  tmp.each{|s|
    line << s.strip
  }
end



a,b = line[0].split(" ").map(&:to_i)


printf("%d %d %.10f", a/b,a%b,a.to_f/b)