import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	}

} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	} main {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s s.close() s.close s double x = (double)a / (double)b; x (double)a / (double)b (double)a (double)b String bd = new BigDecimal(x).toPlainString(); bd new BigDecimal(x).toPlainString() new BigDecimal(x).toPlainString new BigDecimal(x) System.out.println((a/b) + " " + (a%b) + " " + bd) System.out.println System.out System System.out (a/b) + " " + (a%b) + " " + bd " " (a%b) (a/b) + " " + (a%b) + " " + bd (a/b) a b " " (a%b) a b " " bd String[] args args public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	}

} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int a = s.nextInt();
		int b = s.nextInt();
		s.close();
		double x = (double)a / (double)b;
		String bd = new BigDecimal(x).toPlainString();
		System.out.println((a/b) + " " + (a%b) + " " + bd);
	}

}