import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	}
} Main public static void main (String[] args) throws java.lang.Exception
	{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	} main {

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String x; x int a a b; b double c; c x = br.readLine() x br.readLine() br.readLine br String[] ary = x.split(" "); ary x.split(" ") x.split x " " a = Integer.parseInt(ary[0]) a Integer.parseInt(ary[0]) Integer.parseInt Integer ary[0] ary 0 b = Integer.parseInt(ary[1]) b Integer.parseInt(ary[1]) Integer.parseInt Integer ary[1] ary 1 System.out.print(a / b + " ") System.out.print System.out System System.out a / b + " " a / b a b " " System.out.print(a % b + " ") System.out.print System.out System System.out a % b + " " a % b a b " " c = (double)a / b c (double)a / b (double)a b System.out.printf("%.5f", c) System.out.printf System.out System System.out "%.5f" c String[] args args public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	}
} public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;


public class Main {
	public static void main (String[] args) throws java.lang.Exception
	{

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String x;
		int a, b;
		double c;
		x = br.readLine();
		String[] ary = x.split(" ");
		a = Integer.parseInt(ary[0]);
		b = Integer.parseInt(ary[1]);
		
		
		System.out.print(a / b + " ");
		System.out.print(a % b + " ");
		c = (double)a / b;
		System.out.printf("%.5f", c);

	}
}