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

/**
 * @author ??\???
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	}

} import java.text.DecimalFormat; DecimalFormat java.text import java.util.Scanner; Scanner java.util public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	}

} Main /**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	} main {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) long a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner long b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner scanner.close() scanner.close scanner DecimalFormat df = new DecimalFormat("0.00000"); df new DecimalFormat("0.00000") System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b))) System.out.println System.out System System.out (a / b) + " " + (a % b) + " " + df.format(((double) a / b)) " " (a % b) (a / b) + " " + (a % b) + " " + df.format(((double) a / b)) (a / b) a b " " (a % b) a b " " df.format(((double) a / b)) df.format df ((double) a / b) (double) a b String[] args args public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	}

} public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	}

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

/**
 * @author ??\???
 *
 */
public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		long a = scanner.nextInt();
		long b = scanner.nextInt();
		scanner.close();
		
		DecimalFormat df = new DecimalFormat("0.00000");
		
		System.out.println((a / b) + " " + (a % b) + " " + df.format(((double) a / b)));
	}

}