import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	}
} Main public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(line[0]); a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 int b = Integer.parseInt(line[1]); b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 double fa = Integer.parseInt(line[0]); fa Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 double fb = Integer.parseInt(line[1]); fb Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 int d = a/b; d a/b a b int r = a%b; r a%b a b double f = fa/fb; f fa/fb fa fb System.out.printf(d + " " + r + " " + "%5.5f",f) System.out.printf System.out System System.out d + " " + r + " " + "%5.5f" " " r d + " " + r + " " + "%5.5f" d " " r " " "%5.5f" f String[] args args public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	}
} public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] line = br.readLine().split(" ");
    int a = Integer.parseInt(line[0]);
		int b = Integer.parseInt(line[1]);
		double fa = Integer.parseInt(line[0]);
		double fb = Integer.parseInt(line[1]);
		int d = a/b;
		int r = a%b;
		double f = fa/fb;
		System.out.printf(d + " " + r + " " + "%5.5f",f);
	}
}