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

public class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		DecimalFormat t = new DecimalFormat("0.00000");
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		d = a / b;
		r = a % b;
		f =1.0 * a / b;
		System.out.println(d + " " + r + " " + t.format(f));
	}
} import java.util.Scanner; Scanner java.util import java.text.DecimalFormat; DecimalFormat java.text public class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		DecimalFormat t = new DecimalFormat("0.00000");
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		d = a / b;
		r = a % b;
		f =1.0 * a / b;
		System.out.println(d + " " + r + " " + t.format(f));
	}
} Main public static void main(String[] args){
		int a, b, d, r;
		double f;
		DecimalFormat t = new DecimalFormat("0.00000");
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		d = a / b;
		r = a % b;
		f =1.0 * a / b;
		System.out.println(d + " " + r + " " + t.format(f));
	} main {
		int a, b, d, r;
		double f;
		DecimalFormat t = new DecimalFormat("0.00000");
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		d = a / b;
		r = a % b;
		f =1.0 * a / b;
		System.out.println(d + " " + r + " " + t.format(f));
	} int a a b b d d r; r double f; f DecimalFormat t = new DecimalFormat("0.00000"); t new DecimalFormat("0.00000") 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 d = a / b d a / b a b r = a % b r a % b a b f =1.0 * a / b f 1.0 * a / b 1.0 * a 1.0 a b System.out.println(d + " " + r + " " + t.format(f)) System.out.println System.out System System.out d + " " + r + " " + t.format(f) " " r d + " " + r + " " + t.format(f) d " " r " " t.format(f) t.format t f String[] args args public class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		DecimalFormat t = new DecimalFormat("0.00000");
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		d = a / b;
		r = a % b;
		f =1.0 * a / b;
		System.out.println(d + " " + r + " " + t.format(f));
	}
} public class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		DecimalFormat t = new DecimalFormat("0.00000");
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		d = a / b;
		r = a % b;
		f =1.0 * a / b;
		System.out.println(d + " " + r + " " + t.format(f));
	}
} Main

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

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