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


class Main {
	public static void main(String[] args) throws IOException {
		DecimalFormat df1 = new DecimalFormat("0.00000");
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.print((a/b)+ " ");
		System.out.print((a%b)+ " ");
		System.out.println(df1.format((double)a/(double)b));
	}

} 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 import java.util.ArrayList; ArrayList java.util class Main {
	public static void main(String[] args) throws IOException {
		DecimalFormat df1 = new DecimalFormat("0.00000");
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.print((a/b)+ " ");
		System.out.print((a%b)+ " ");
		System.out.println(df1.format((double)a/(double)b));
	}

} Main public static void main(String[] args) throws IOException {
		DecimalFormat df1 = new DecimalFormat("0.00000");
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.print((a/b)+ " ");
		System.out.print((a%b)+ " ");
		System.out.println(df1.format((double)a/(double)b));
	} main {
		DecimalFormat df1 = new DecimalFormat("0.00000");
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.print((a/b)+ " ");
		System.out.print((a%b)+ " ");
		System.out.println(df1.format((double)a/(double)b));
	} DecimalFormat df1 = new DecimalFormat("0.00000"); df1 new DecimalFormat("0.00000") BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) String s = new String(in.readLine()); s new String(in.readLine()) String[] ss = s.split(" "); ss s.split(" ") s.split s " " int a = Integer.parseInt(ss[0]); a Integer.parseInt(ss[0]) Integer.parseInt Integer ss[0] ss 0 int b = Integer.parseInt(ss[1]); b Integer.parseInt(ss[1]) Integer.parseInt Integer ss[1] ss 1 System.out.print((a/b)+ " ") System.out.print System.out System System.out (a/b)+ " " (a/b) a b " " System.out.print((a%b)+ " ") System.out.print System.out System System.out (a%b)+ " " (a%b) a b " " System.out.println(df1.format((double)a/(double)b)) System.out.println System.out System System.out df1.format((double)a/(double)b) df1.format df1 (double)a/(double)b (double)a (double)b String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.text.DecimalFormat;
import java.util.ArrayList;


class Main {
	public static void main(String[] args) throws IOException {
		DecimalFormat df1 = new DecimalFormat("0.00000");
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String s = new String(in.readLine());
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);
		System.out.print((a/b)+ " ");
		System.out.print((a%b)+ " ");
		System.out.println(df1.format((double)a/(double)b));
	}

}