import java.util.Scanner;
	class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            int d = a/b;
            int r = a%b;
            double f = (double)a/b;
            System.out.printf(d + " " + r + " " + "%.5f\n", f);
            
            sc.close();
        }
    } import java.util.Scanner; Scanner java.util class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            int d = a/b;
            int r = a%b;
            double f = (double)a/b;
            System.out.printf(d + " " + r + " " + "%.5f\n", f);
            
            sc.close();
        }
    } Main public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            int d = a/b;
            int r = a%b;
            double f = (double)a/b;
            System.out.printf(d + " " + r + " " + "%.5f\n", f);
            
            sc.close();
        } main {
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            int d = a/b;
            int r = a%b;
            double f = (double)a/b;
            System.out.printf(d + " " + r + " " + "%.5f\n", f);
            
            sc.close();
        } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt 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 + " " + r + " " + "%.5f\n", f) System.out.printf System.out System System.out d + " " + r + " " + "%.5f\n" " " r d + " " + r + " " + "%.5f\n" d " " r " " "%.5f\n" f sc.close() sc.close sc String[] args args
import java.util.Scanner;
	class Main{
        public static void main(String[] args){
            Scanner sc = new Scanner(System.in);
            int a = sc.nextInt();
            int b = sc.nextInt();
            int d = a/b;
            int r = a%b;
            double f = (double)a/b;
            System.out.printf(d + " " + r + " " + "%.5f\n", f);
            
            sc.close();
        }
    }
