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

public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	}
} 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) throws IOException {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	}
} Main public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	} main {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	} int a = 0; a 0 int b = 0; b 0 int d = 0; d 0 int r = 0; r 0 double f = 0; f 0 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[] num = str.split(" "); num str.split(" ") str.split str " " a = Integer.parseInt(num[0]) a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 b = Integer.parseInt(num[1]) b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 d = a / b d a / b a b r = a % b r a % b a b f = (double) a / (double) b f (double) a / (double) b (double) a (double) b String g = String.format("%.5f" , f); g String.format("%.5f" , f) String.format String "%.5f" f System.out.print(d) System.out.print System.out System System.out d System.out.print(" " + r) System.out.print System.out System System.out " " + r " " r System.out.print(" " + g) System.out.print System.out System System.out " " + g " " g String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	}
} public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	}
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws IOException {
		int a = 0;
		int b = 0;
		int d = 0;
		int r = 0;
		double f = 0;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String[] num = str.split(" ");

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

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

		System.out.print(d);
		System.out.print(" " + r);
		System.out.print(" " + g);
	}
}