import java.io.*;
public class Main{
	public static void main(String [] args) throws  IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		}
	} import java.io.*; io.* java public class Main{
	public static void main(String [] args) throws  IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		}
	} Main public static void main(String [] args) throws  IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] st=br.readLine().split(" "); st br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a=Integer.parseInt(st[0]); a Integer.parseInt(st[0]) Integer.parseInt Integer st[0] st 0 int b=Integer.parseInt(st[1]); b Integer.parseInt(st[1]) Integer.parseInt Integer st[1] st 1 System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b) System.out.printf System.out System System.out "%d %d %.6f" a/b a b a%b a b (double)a/b (double)a b String [] args args public class Main{
	public static void main(String [] args) throws  IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		}
	} public class Main{
	public static void main(String [] args) throws  IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		}
	} Main
import java.io.*;
public class Main{
	public static void main(String [] args) throws  IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String[] st=br.readLine().split(" ");
		int a=Integer.parseInt(st[0]);
		int b=Integer.parseInt(st[1]);

		System.out.printf("%d %d %.6f",a/b,a%b,(double)a/b);
		}
	}