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


public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } 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 {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } Main public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 } main {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 } try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
} catch (Exception e) {
	// TODO: handle exception
} Exception e {
	// TODO: handle exception
} {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); buf new BufferedReader(new InputStreamReader(System.in)) String input = buf.readLine(); input buf.readLine() buf.readLine buf String[] strAry = input.split(" "); strAry input.split(" ") input.split input " " int a = Integer.parseInt(strAry[0]); a Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int b = Integer.parseInt(strAry[1]); b Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 int d = a/b; d a/b a b int r = a%b; r a%b a b double f = 1.0 *  a/b; f 1.0 *  a/b 1.0 *  a 1.0 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 public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 }
    } Main
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {
	public static void main(String[] args) throws Exception {
try {
	BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	String input = buf.readLine();
	
	String[] strAry = input.split(" ");
    int a = Integer.parseInt(strAry[0]);
    int b = Integer.parseInt(strAry[1]);

    int d = a/b;
    int r = a%b;
    double f = 1.0 *  a/b;
    
    System.out.printf("%d %d %.5f\n", d, r, f);

} catch (Exception e) {
	// TODO: handle exception
}
		 }
    }