import java.util.Scanner;

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

class Main{
        public static void main(String args[]){
                Scanner scan = new Scanner(System.in);
                int val1=scan.nextInt();
                int val2=scan.nextInt();
                int a=val1/val2;
                int b=val1%val2;
                double c=(double)val1/val2;
                String f=String.format("%.6f",c);
                System.out.println(a+" "+b+" "+f);
        }
}