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

class Main{
	Scanner scan = new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	public Main(){
		int d=a/b;
		int r=a%b;
                double f=(double)a/(double)b;
		System.out.printf("%d %d %.5f", d, r, f);
	}
	public static void main(String[] args){
		new Main();
	}
} import java.util.*; util.* java import java.io.*; io.* java class Main{
	Scanner scan = new Scanner(System.in);
	int a=scan.nextInt();
	int b=scan.nextInt();
	public Main(){
		int d=a/b;
		int r=a%b;
                double f=(double)a/(double)b;
		System.out.printf("%d %d %.5f", d, r, f);
	}
	public static void main(String[] args){
		new Main();
	}
} Main 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 public Main(){
		int d=a/b;
		int r=a%b;
                double f=(double)a/(double)b;
		System.out.printf("%d %d %.5f", d, r, f);
	} Main {
		int d=a/b;
		int r=a%b;
                double f=(double)a/(double)b;
		System.out.printf("%d %d %.5f", d, r, f);
	} int d=a/b; d a/b a b int r=a%b; r a%b a b double f=(double)a/(double)b; f (double)a/(double)b (double)a (double)b System.out.printf("%d %d %.5f", d, r, f) System.out.printf System.out System System.out "%d %d %.5f" d r f public static void main(String[] args){
		new Main();
	} main {
		new Main();
	} new Main() String[] args args
import java.util.*;
import java.io.*;

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