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*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", 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*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", 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*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", f)));
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int d = a/b;
		
		int r=a-b*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", 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*d; r a-b*d a b*d b d double f=1.0 * a/b; f 1.0 * a/b 1.0 * a 1.0 a b System.out.println(d+" "+r+" "+(String.format("%.8f", f))) System.out.println System.out System System.out d+" "+r+" "+(String.format("%.8f", f)) " " r d+" "+r+" "+(String.format("%.8f", f)) d " " r " " (String.format("%.8f", f)) String.format String "%.8f" 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*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", 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*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", 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*d;
		double f=1.0 * a/b;
		
		System.out.println(d+" "+r+" "+(String.format("%.8f", f)));
	}

}

