import java.util.Scanner;
import java.util.Formatter;
public class Main
{
	public static void main(String args[])
	{
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	}
} import java.util.Scanner; Scanner java.util import java.util.Formatter; Formatter java.util public class Main
{
	public static void main(String args[])
	{
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	}
} Main public static void main(String args[])
	{
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	} main {
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	} Scanner inp = new Scanner(System.in); inp new Scanner(System.in) Formatter frm = new Formatter(); frm new Formatter() int a a b; b double c; c a = inp.nextInt() a inp.nextInt() inp.nextInt inp b = inp.nextInt() b inp.nextInt() inp.nextInt inp frm.format("%.5f",(double)a/b) frm.format frm "%.5f" (double)a/b (double)a b System.out.println(a/b + " " + a%b + " " + frm) System.out.println System.out System System.out a/b + " " + a%b + " " + frm " " a%b a/b + " " + a%b + " " + frm a/b a b " " a%b a b " " frm String args[] args public class Main
{
	public static void main(String args[])
	{
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	}
} public class Main
{
	public static void main(String args[])
	{
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	}
} Main
import java.util.Scanner;
import java.util.Formatter;
public class Main
{
	public static void main(String args[])
	{
		Scanner inp = new Scanner(System.in);
		Formatter frm = new Formatter();
		int a, b;
		double c;
		a = inp.nextInt();
		b = inp.nextInt();
		frm.format("%.5f",(double)a/b);
		System.out.println(a/b + " " + a%b + " " + frm);
	}
}