import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	}
} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int d = a / b; d a / b a b int r = a % b; r a % b a b double f = 1.00000*a / b; f 1.00000*a / b 1.00000*a 1.00000 a b System.out.print(d + " " + r + " ") System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.println(String.format("%6f", f)) System.out.println System.out System System.out String.format("%6f", f) String.format String "%6f" f String[] args args public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	}
} public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a / b;
		int r = a % b;
		double f = 1.00000*a / b;
		System.out.print(d + " " + r + " ");
		System.out.println(String.format("%6f", f));
	}
}
