import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    }
} Main public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    } main {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String line = br.readLine(); line br.readLine() br.readLine br String[] ary = line.split(" "); ary line.split(" ") line.split line " " int a = Integer.parseInt(ary[0]); a Integer.parseInt(ary[0]) Integer.parseInt Integer ary[0] ary 0 int b = Integer.parseInt(ary[1]); b Integer.parseInt(ary[1]) Integer.parseInt Integer ary[1] ary 1 int ansA = a / b; ansA a / b a b int ansB = a % b; ansB a % b a b double ansC = (double)a / (double)b; ansC (double)a / (double)b (double)a (double)b System.out.print(ansA + " " + ansB + " ") System.out.print System.out System System.out ansA + " " + ansB + " " ansB ansA + " " + ansB + " " ansA " " ansB " " System.out.printf("%.5f", ansC) System.out.printf System.out System System.out "%.5f" ansC System.out.println("") System.out.println System.out System System.out "" String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main {
    public static void main(String[] args) throws Exception {
        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        
        String[] ary = line.split(" ");
        int a = Integer.parseInt(ary[0]);
        int b = Integer.parseInt(ary[1]);
        
        int ansA = a / b;
        int ansB = a % b;
        double ansC = (double)a / (double)b;
        
        
        System.out.print(ansA + " " + ansB + " ");
        System.out.printf("%.5f", ansC);
        System.out.println("");
    }
}