import java.io.*;
public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	}
} 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 str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	}
} Main public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br String[] i=str.split(" "); i str.split(" ") str.split str " " int a=Integer.parseInt(i[0]); a Integer.parseInt(i[0]) Integer.parseInt Integer i[0] i 0 int b=Integer.parseInt(i[1]); b Integer.parseInt(i[1]) Integer.parseInt Integer i[1] i 1 int x=a/b; x a/b a b int y=a%b; y a%b a b double z=(double)a/(double)b; z (double)a/(double)b (double)a (double)b System.out.print(x+" "+y+" ") System.out.print System.out System System.out x+" "+y+" " y x+" "+y+" " x " " y " " System.out.printf("%.8f\n",z) System.out.printf System.out System System.out "%.8f\n" z String[] args args public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	}
} public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	}
} Main
import java.io.*;
public class Main {
	public static void main(String[] args)throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		String[] i=str.split(" ");
		int a=Integer.parseInt(i[0]);
		int b=Integer.parseInt(i[1]);
		int x=a/b;int y=a%b;double z=(double)a/(double)b;
		System.out.print(x+" "+y+" ");
		System.out.printf("%.8f\n",z);
	}
}