import java.util.Scanner;
class Main {
	int a,b,x,y;
	double z = 0.0;
	public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		x = a / b;
		y = a % b;
		z = a * 1.0 / b;
		System.out.printf("%d %d %7f\n",x,y,z);
	}
	public static void main(String[] args){
		new Main().suzuki();
	}
} import java.util.Scanner; Scanner java.util class Main {
	int a,b,x,y;
	double z = 0.0;
	public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		x = a / b;
		y = a % b;
		z = a * 1.0 / b;
		System.out.printf("%d %d %7f\n",x,y,z);
	}
	public static void main(String[] args){
		new Main().suzuki();
	}
} Main int a a b b x x y; y double z = 0.0; z 0.0 public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		x = a / b;
		y = a % b;
		z = a * 1.0 / b;
		System.out.printf("%d %d %7f\n",x,y,z);
	} suzuki {
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		x = a / b;
		y = a % b;
		z = a * 1.0 / b;
		System.out.printf("%d %d %7f\n",x,y,z);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc x = a / b x a / b a b y = a % b y a % b a b z = a * 1.0 / b z a * 1.0 / b a * 1.0 a 1.0 b System.out.printf("%d %d %7f\n",x,y,z) System.out.printf System.out System System.out "%d %d %7f\n" x y z public static void main(String[] args){
		new Main().suzuki();
	} main {
		new Main().suzuki();
	} new Main().suzuki() new Main().suzuki new Main() String[] args args
import java.util.Scanner;
class Main {
	int a,b,x,y;
	double z = 0.0;
	public void suzuki(){
		Scanner sc = new Scanner(System.in);
		a = sc.nextInt();
		b = sc.nextInt();
		x = a / b;
		y = a % b;
		z = a * 1.0 / b;
		System.out.printf("%d %d %7f\n",x,y,z);
	}
	public static void main(String[] args){
		new Main().suzuki();
	}
}