import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	}
} Main public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 long b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 Double ad = new Double(a); ad new Double(a) Double bd = new Double(b); bd new Double(b) System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd)) System.out.println System.out System System.out a / b + " " + a % b + " " + String.format("%.5f", ad / bd) " " a % b a / b + " " + a % b + " " + String.format("%.5f", ad / bd) a / b a b " " a % b a b " " String.format("%.5f", ad / bd) String.format String "%.5f" ad / bd ad bd String[] args args public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	}
} public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] str = br.readLine().split(" ");
		long a = Integer.parseInt(str[0]);
		long b = Integer.parseInt(str[1]);
		Double ad = new Double(a);
		Double bd = new Double(b);
		System.out.println(a / b + " " + a % b + " " + String.format("%.5f", ad / bd));
	}
}