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

public class Main {

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

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	}

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

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

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	}

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

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String[] inputNum = br.readLine().split(" ");
		int a = Integer.parseInt(inputNum[0]);
		int b = Integer.parseInt(inputNum[1]);

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] inputNum = br.readLine().split(" "); inputNum br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(inputNum[0]); a Integer.parseInt(inputNum[0]) Integer.parseInt Integer inputNum[0] inputNum 0 int b = Integer.parseInt(inputNum[1]); b Integer.parseInt(inputNum[1]) Integer.parseInt Integer inputNum[1] inputNum 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 DecimalFormat dmmft = new DecimalFormat("0.00000"); dmmft new DecimalFormat("0.00000") System.out.println(d + " " +  r  + " " + dmmft.format(f) ) System.out.println System.out System System.out d + " " +  r  + " " + dmmft.format(f) " " r d + " " +  r  + " " + dmmft.format(f) d " " r " " dmmft.format(f) dmmft.format dmmft f String[] args args public class Main {

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

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	}

} public class Main {

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

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	}

} Main

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

public class Main {

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

		int d = a/b;
		int r = a%b;
		double f = (double)a/b;

		DecimalFormat dmmft = new DecimalFormat("0.00000");
		System.out.println(d + " " +  r  + " " + dmmft.format(f) );


	}

}