a, b = gets.chomp.split.map(&:to_i)
# a / b = d
# a % b = r
# a / b = f  (???????°???°?????°)
# to_f ???????????????????????¨????????¨????????´??°??§??????????????¨????????????????????´??°.0??¨?????£?????????????
  #??´??°/??´??°??§??????????°???°?????°?????????
# ??´??°.to_f ??§???????°???°?????°???????????§???????????§???a b ????????????????????????to_f????????????????????¨?????????
d = a / b
r = a % b
f = a.to_f / b.to_f
puts " #{d} #{r} #{sprintf("%.9f", f)} "
# ???????°???°?????\???????????°????¶??????????