import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double f = 1.0 * a / b;
		String keta =String.format("%.8f",f);
		System.out.println(d+" "+r+" "+keta);
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double f = 1.0 * a / b;
		String keta =String.format("%.8f",f);
		System.out.println(d+" "+r+" "+keta);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double f = 1.0 * a / b;
		String keta =String.format("%.8f",f);
		System.out.println(d+" "+r+" "+keta);
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double f = 1.0 * a / b;
		String keta =String.format("%.8f",f);
		System.out.println(d+" "+r+" "+keta);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d = a/b; d a/b a b int r = a%b; r a%b a b double f = 1.0 * a / b; f 1.0 * a / b 1.0 * a 1.0 a b String keta =String.format("%.8f",f); keta String.format("%.8f",f) String.format String "%.8f" f System.out.println(d+" "+r+" "+keta) System.out.println System.out System System.out d+" "+r+" "+keta " " r d+" "+r+" "+keta d " " r " " keta String[] args args
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		double f = 1.0 * a / b;
		String keta =String.format("%.8f",f);
		System.out.println(d+" "+r+" "+keta);
	}
}