import java.util.*;

public class Main{
	public static void main(String[] args){
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args){
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	}
} Main public static void main(String[] args){
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	} main {
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	} int a a b b d d r; r double f; f Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		} 1<=a && a <=Math.pow(10, 9) 1<=a 1 a a <=Math.pow(10, 9) a Math.pow(10, 9) Math.pow Math 10 9 {
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		} d = a/b d a/b a b r = a%b r a%b a b f = (double)a/b f (double)a/b (double)a b System.out.print(d+" "+r+" ") System.out.print System.out System System.out d+" "+r+" " r d+" "+r+" " d " " r " " System.out.printf("%f\n",(double)f) System.out.printf System.out System System.out "%f\n" (double)f String[] args args public class Main{
	public static void main(String[] args){
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	}
} public class Main{
	public static void main(String[] args){
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args){
		int a, b, d, r;
		double f;

		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		//整数a,bを格納する

		if(1<=a && a <=Math.pow(10, 9)){
			d = a/b;
			//除算（余無）
			r = a%b;
			//除算（余有）
			f = (double)a/b;
			//除算（浮動小数点）
			System.out.print(d+" "+r+" ");
			System.out.printf("%f\n",(double)f);
		}
	}
}