import java.util.*;

class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = Integer.parseInt(sc.next());
      int b = Integer.parseInt(sc.next());
      int d = a / b;
      int r = a % b;
      double f = (double)a / b;
      System.out.printf("%d %d %.5f\n", d, r, f);
   }
} import java.util.*; util.* java class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = Integer.parseInt(sc.next());
      int b = Integer.parseInt(sc.next());
      int d = a / b;
      int r = a % b;
      double f = (double)a / b;
      System.out.printf("%d %d %.5f\n", d, r, f);
   }
} Main public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = Integer.parseInt(sc.next());
      int b = Integer.parseInt(sc.next());
      int d = a / b;
      int r = a % b;
      double f = (double)a / b;
      System.out.printf("%d %d %.5f\n", d, r, f);
   } main {
      Scanner sc = new Scanner(System.in);
      int a = Integer.parseInt(sc.next());
      int b = Integer.parseInt(sc.next());
      int d = a / b;
      int r = a % b;
      double f = (double)a / b;
      System.out.printf("%d %d %.5f\n", d, r, f);
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = Integer.parseInt(sc.next()); a Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int b = Integer.parseInt(sc.next()); b Integer.parseInt(sc.next()) Integer.parseInt Integer sc.next() sc.next sc int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / b; f (double)a / b (double)a b System.out.printf("%d %d %.5f\n", d, r, f) System.out.printf System.out System System.out "%d %d %.5f\n" d r f String[] args args
import java.util.*;

class Main {
   public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = Integer.parseInt(sc.next());
      int b = Integer.parseInt(sc.next());
      int d = a / b;
      int r = a % b;
      double f = (double)a / b;
      System.out.printf("%d %d %.5f\n", d, r, f);
   }
}