import java.io.*;
public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	}
} import java.io.*; io.* java public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	}
} Main public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	} main {
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	} BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) String str=input.readLine(); str input.readLine() input.readLine input String[] str2=str.split(" "); str2 str.split(" ") str.split str " " int a=Integer.parseInt(str2[0]); a Integer.parseInt(str2[0]) Integer.parseInt Integer str2[0] str2 0 int b=Integer.parseInt(str2[1]); b Integer.parseInt(str2[1]) Integer.parseInt Integer str2[1] str2 1 System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b))) System.out.println System.out System System.out a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)) " " a%b a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)) a/b a b " " a%b a b " " (String.format("%.5f",(double)a/(double)b)) String.format String "%.5f" (double)a/(double)b (double)a (double)b String[] args args public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	}
} public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	}
} Main
import java.io.*;
public class Main{
	public static void main(String[] args)throws Exception{
		BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
		String str=input.readLine();
		String[] str2=str.split(" ");
		int a=Integer.parseInt(str2[0]);
		int b=Integer.parseInt(str2[1]);
		System.out.println(a/b+" "+a%b+" "+(String.format("%.5f",(double)a/(double)b)));
	}
}