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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	}

} 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 {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	}

} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) StringBuilder sb = new StringBuilder(); sb new StringBuilder() String num = br.readLine(); num br.readLine() br.readLine br String[] set = num.split(" "); set num.split(" ") num.split num " " int a = Integer.parseInt(set[0]); a Integer.parseInt(set[0]) Integer.parseInt Integer set[0] set 0 int b = Integer.parseInt(set[1]); b Integer.parseInt(set[1]) Integer.parseInt Integer set[1] set 1 int c = a/b; c a/b a b int d = a%b; d a%b a b String f = String.format("%.5f", ((double)a/(double)b)); f String.format("%.5f", ((double)a/(double)b)) String.format String "%.5f" ((double)a/(double)b) (double)a (double)b System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f)) System.out.println System.out System System.out sb.append(c).append(" ").append(d).append(" ").append(f) sb.append(c).append(" ").append(d).append(" ").append sb.append(c).append(" ").append(d).append(" ") sb.append(c).append(" ").append(d).append sb.append(c).append(" ").append(d) sb.append(c).append(" ").append sb.append(c).append(" ") sb.append(c).append sb.append(c) sb.append sb c " " d " " f String[] args args public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	}

} public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	}

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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		StringBuilder sb = new StringBuilder();
		String num = br.readLine();
		String[] set = num.split(" ");

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

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

		System.out.println(sb.append(c).append(" ").append(d).append(" ").append(f));

	}

}