import java.util.*;

class Main {
     public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          int a = scan.nextInt();
          int b = scan.nextInt();
          
          int c = a/b;
          int d = a%b;
          
          String s = String.format("%.5f", 1.0*a/b);

          System.out.println(c + " " + d + " " + s);
     }
} import java.util.*; util.* java class Main {
     public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          int a = scan.nextInt();
          int b = scan.nextInt();
          
          int c = a/b;
          int d = a%b;
          
          String s = String.format("%.5f", 1.0*a/b);

          System.out.println(c + " " + d + " " + s);
     }
} Main public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          int a = scan.nextInt();
          int b = scan.nextInt();
          
          int c = a/b;
          int d = a%b;
          
          String s = String.format("%.5f", 1.0*a/b);

          System.out.println(c + " " + d + " " + s);
     } main {
          Scanner scan = new Scanner(System.in);
          int a = scan.nextInt();
          int b = scan.nextInt();
          
          int c = a/b;
          int d = a%b;
          
          String s = String.format("%.5f", 1.0*a/b);

          System.out.println(c + " " + d + " " + s);
     } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = a/b; c a/b a b int d = a%b; d a%b a b String s = String.format("%.5f", 1.0*a/b); s String.format("%.5f", 1.0*a/b) String.format String "%.5f" 1.0*a/b 1.0*a 1.0 a b System.out.println(c + " " + d + " " + s) System.out.println System.out System System.out c + " " + d + " " + s " " d c + " " + d + " " + s c " " d " " s String[] args args
import java.util.*;

class Main {
     public static void main(String[] args) {
          Scanner scan = new Scanner(System.in);
          int a = scan.nextInt();
          int b = scan.nextInt();
          
          int c = a/b;
          int d = a%b;
          
          String s = String.format("%.5f", 1.0*a/b);

          System.out.println(c + " " + d + " " + s);
     }
}