import java.util.Scanner;

class Main {
    public static void main(String[] args){

	Scanner sc = new Scanner(System.in);

	int a = sc.nextInt();
	int b = sc.nextInt();	
	int d, r;
	double f;

	d = a / b;
	r = a % b;
	f = 1.0 * a / b;
	
	System.out.print(d);
	System.out.print(' ');
	System.out.print(r);
	System.out.print(' ');
	System.out.print(String.format("%.5f", f));
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args){

	Scanner sc = new Scanner(System.in);

	int a = sc.nextInt();
	int b = sc.nextInt();	
	int d, r;
	double f;

	d = a / b;
	r = a % b;
	f = 1.0 * a / b;
	
	System.out.print(d);
	System.out.print(' ');
	System.out.print(r);
	System.out.print(' ');
	System.out.print(String.format("%.5f", f));
    }
} Main public static void main(String[] args){

	Scanner sc = new Scanner(System.in);

	int a = sc.nextInt();
	int b = sc.nextInt();	
	int d, r;
	double f;

	d = a / b;
	r = a % b;
	f = 1.0 * a / b;
	
	System.out.print(d);
	System.out.print(' ');
	System.out.print(r);
	System.out.print(' ');
	System.out.print(String.format("%.5f", f));
    } main {

	Scanner sc = new Scanner(System.in);

	int a = sc.nextInt();
	int b = sc.nextInt();	
	int d, r;
	double f;

	d = a / b;
	r = a % b;
	f = 1.0 * a / b;
	
	System.out.print(d);
	System.out.print(' ');
	System.out.print(r);
	System.out.print(' ');
	System.out.print(String.format("%.5f", f));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int d d r; r double f; f d = a / b d a / b a b r = a % b r a % b a b f = 1.0 * a / b f 1.0 * a / b 1.0 * a 1.0 a b System.out.print(d) System.out.print System.out System System.out d System.out.print(' ') System.out.print System.out System System.out ' ' System.out.print(r) System.out.print System.out System System.out r System.out.print(' ') System.out.print System.out System System.out ' ' System.out.print(String.format("%.5f", f)) System.out.print System.out System System.out String.format("%.5f", f) String.format String "%.5f" f String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args){

	Scanner sc = new Scanner(System.in);

	int a = sc.nextInt();
	int b = sc.nextInt();	
	int d, r;
	double f;

	d = a / b;
	r = a % b;
	f = 1.0 * a / b;
	
	System.out.print(d);
	System.out.print(' ');
	System.out.print(r);
	System.out.print(' ');
	System.out.print(String.format("%.5f", f));
    }
}
