import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	}

} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String line = sc.nextLine(); line sc.nextLine() sc.nextLine sc String[] x = line.split(" "); x line.split(" ") line.split line " " int a = Integer.parseInt(x[0]); a Integer.parseInt(x[0]) Integer.parseInt Integer x[0] x 0 int b = Integer.parseInt(x[1]); b Integer.parseInt(x[1]) Integer.parseInt Integer x[1] x 1 double fa = Integer.parseInt(x[0]); fa Integer.parseInt(x[0]) Integer.parseInt Integer x[0] x 0 double fb = Integer.parseInt(x[1]); fb Integer.parseInt(x[1]) Integer.parseInt Integer x[1] x 1 System.out.print(a / b + " ") System.out.print System.out System System.out a / b + " " a / b a b " " System.out.print(a % b + " ") System.out.print System.out System System.out a % b + " " a % b a b " " double f = fa / fb; f fa / fb fa fb BigDecimal B = new BigDecimal(f); B new BigDecimal(f) BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP); F B.setScale(9, BigDecimal.ROUND_HALF_UP) B.setScale B 9 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.printf("%.8f",F) System.out.printf System.out System System.out "%.8f" F String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	}

} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] x = line.split(" ");
		int a = Integer.parseInt(x[0]);
		int b = Integer.parseInt(x[1]);
		double fa = Integer.parseInt(x[0]);
		double fb = Integer.parseInt(x[1]);
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		double f = fa / fb;
		BigDecimal B = new BigDecimal(f);
		BigDecimal F = B.setScale(9, BigDecimal.ROUND_HALF_UP);
		System.out.printf("%.8f",F);

	}

}