import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	}
} import java.text.DecimalFormat; DecimalFormat java.text import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	}
} Main public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	} main {
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) DecimalFormat df = new DecimalFormat("####################.####################"); df new DecimalFormat("####################.####################") String a = scan.next(); a scan.next() scan.next scan String b = scan.next(); b scan.next() scan.next scan int result1 = Integer.parseInt(a) / Integer.parseInt(b); result1 Integer.parseInt(a) / Integer.parseInt(b) Integer.parseInt(a) Integer.parseInt Integer a Integer.parseInt(b) Integer.parseInt Integer b int result2 = Integer.parseInt(a) % Integer.parseInt(b); result2 Integer.parseInt(a) % Integer.parseInt(b) Integer.parseInt(a) Integer.parseInt Integer a Integer.parseInt(b) Integer.parseInt Integer b double result3 = Double.parseDouble(a) / Double.parseDouble(b); result3 Double.parseDouble(a) / Double.parseDouble(b) Double.parseDouble(a) Double.parseDouble Double a Double.parseDouble(b) Double.parseDouble Double b System.out.println(result1 + " " + result2 + " " + df.format(result3)) System.out.println System.out System System.out result1 + " " + result2 + " " + df.format(result3) " " result2 result1 + " " + result2 + " " + df.format(result3) result1 " " result2 " " df.format(result3) df.format df result3 scan.close() scan.close scan String args[] args public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	}
} public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	}
} Main
import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		DecimalFormat df = new DecimalFormat("####################.####################");

		String a = scan.next();
		String b = scan.next();

		int result1 = Integer.parseInt(a) / Integer.parseInt(b);
		int result2 = Integer.parseInt(a) % Integer.parseInt(b);
		double result3 = Double.parseDouble(a) / Double.parseDouble(b);

		System.out.println(result1 + " " + result2 + " " + df.format(result3));

		scan.close();

	}
}