
import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	}
} import java.text.DecimalFormat; DecimalFormat java.text import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	} main {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.nextLine().split(" "); s sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int a = Integer.parseInt(s[0]); a Integer.parseInt(s[0]) Integer.parseInt Integer s[0] s 0 int b = Integer.parseInt(s[1]); b Integer.parseInt(s[1]) Integer.parseInt Integer s[1] s 1 int d = a / b; d a / b a b int r = a % b; r a % b a b double af = (double) a; af (double) a double bf = (double) b; bf (double) b double f = af / bf; f af / bf af bf System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f)) System.out.println System.out System System.out d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f) " " r d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f) d " " r " " new DecimalFormat("0000000000.0000000000").format(f) new DecimalFormat("0000000000.0000000000").format new DecimalFormat("0000000000.0000000000") f String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	}
} Main

import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		String[] s = sc.nextLine().split(" ");
		int a = Integer.parseInt(s[0]);
		int b = Integer.parseInt(s[1]);
		int d = a / b;
		int r = a % b;
		double af = (double) a;
		double bf = (double) b;

		double f = af / bf;

		System.out.println(d + " " + r + " " + new DecimalFormat("0000000000.0000000000").format(f));
	}
}