exception InvalidInput
let () =
  let line = read_line () in
  let a, b = line |>
             Str.split (Str.regexp " ") |>
             List.map int_of_string |>
             (function | [a; b] -> a, b
                       | _ -> raise InvalidInput) in
  let result = [string_of_int (a / b);
                string_of_int (a mod b);
                string_of_float ((float_of_int a) /. (float_of_int b))] |>
               String.concat " " in
  print_endline result