import java.util.*;
import java.io.*;

class Main{		//?????£??????

	int a;
	int b;

	public Main(){
		Scanner scan = new Scanner(System.in);
		a = scan.nextInt();
		b = scan.nextInt();

		int x = a / b;
		int y = a % b;
		double z = (double)a / (double)b;

		System.out.printf("%d %d %.5f", x, y, z);
		System.out.println("");
	}
	public static void main(String[] args){
		new Main();
	}
} import java.util.*; util.* java import java.io.*; io.* java class Main{		//?????£??????

	int a;
	int b;

	public Main(){
		Scanner scan = new Scanner(System.in);
		a = scan.nextInt();
		b = scan.nextInt();

		int x = a / b;
		int y = a % b;
		double z = (double)a / (double)b;

		System.out.printf("%d %d %.5f", x, y, z);
		System.out.println("");
	}
	public static void main(String[] args){
		new Main();
	}
} Main int a; a int b; b public Main(){
		Scanner scan = new Scanner(System.in);
		a = scan.nextInt();
		b = scan.nextInt();

		int x = a / b;
		int y = a % b;
		double z = (double)a / (double)b;

		System.out.printf("%d %d %.5f", x, y, z);
		System.out.println("");
	} Main {
		Scanner scan = new Scanner(System.in);
		a = scan.nextInt();
		b = scan.nextInt();

		int x = a / b;
		int y = a % b;
		double z = (double)a / (double)b;

		System.out.printf("%d %d %.5f", x, y, z);
		System.out.println("");
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan int x = a / b; x a / b a b int y = a % b; y a % b a b double z = (double)a / (double)b; z (double)a / (double)b (double)a (double)b System.out.printf("%d %d %.5f", x, y, z) System.out.printf System.out System System.out "%d %d %.5f" x y z System.out.println("") System.out.println System.out System System.out "" public static void main(String[] args){
		new Main();
	} main {
		new Main();
	} new Main() String[] args args
import java.util.*;
import java.io.*;

class Main{		//?????£??????

	int a;
	int b;

	public Main(){
		Scanner scan = new Scanner(System.in);
		a = scan.nextInt();
		b = scan.nextInt();

		int x = a / b;
		int y = a % b;
		double z = (double)a / (double)b;

		System.out.printf("%d %d %.5f", x, y, z);
		System.out.println("");
	}
	public static void main(String[] args){
		new Main();
	}
}