let solve a b =
  Printf.printf "%d %d %f"
                (int_of_float a / int_of_float b)
                (int_of_float a mod int_of_float b)
                (a /. b)

let () = Scanf.scanf "%f %f" solve