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

public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

} Main public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	} main {

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	} BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); reader new BufferedReader(new InputStreamReader(System.in)) try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		} catch(IOException e){
			System.out.println("??¨??????:"+e);

		} IOException e {
			System.out.println("??¨??????:"+e);

		} System.out.println("??¨??????:"+e) System.out.println System.out System System.out "??¨??????:"+e "??¨??????:" e {

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		} String str=reader.readLine(); str reader.readLine() reader.readLine reader String[] str_Array=str.split(" "); str_Array str.split(" ") str.split str " " int a=Integer.parseInt(str_Array[0]); a Integer.parseInt(str_Array[0]) Integer.parseInt Integer str_Array[0] str_Array 0 int b=Integer.parseInt(str_Array[1]); b Integer.parseInt(str_Array[1]) Integer.parseInt Integer str_Array[1] str_Array 1 int d=a/b; d a/b a b int r=a%b; r a%b a b double f=(double)a/b; f (double)a/b (double)a b String after=String.format("%.5f", f); after String.format("%.5f", f) String.format String "%.5f" f System.out.println(d+" "+r+" "+after) System.out.println System.out System System.out d+" "+r+" "+after " " r d+" "+r+" "+after d " " r " " after reader.close() reader.close reader String[] args args public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

} public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

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

public class Main{


	public static void main(String[] args){

		BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));

		try{

			String str=reader.readLine();
			String[] str_Array=str.split(" ");

			int a=Integer.parseInt(str_Array[0]);
			int b=Integer.parseInt(str_Array[1]);

			int d=a/b;
			int r=a%b;
			double f=(double)a/b;
			String after=String.format("%.5f", f);

			System.out.println(d+" "+r+" "+after);

			reader.close();
		}catch(IOException e){
			System.out.println("??¨??????:"+e);

		}

	}

}