import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	} main {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	} Scanner kb=new Scanner(System.in); kb new Scanner(System.in) double x=kb.nextDouble(); x kb.nextDouble() kb.nextDouble kb double y=kb.nextDouble(); y kb.nextDouble() kb.nextDouble kb int p=(int)x/(int)y; p (int)x/(int)y (int)x (int)y int q=(int)x%(int)y; q (int)x%(int)y (int)x (int)y System.out.printf("%d %d %f\n",p,q,x/y) System.out.printf System.out System System.out "%d %d %f\n" p q x/y x y String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	}

} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
Scanner kb=new Scanner(System.in);
double x=kb.nextDouble();
double y=kb.nextDouble();
int p=(int)x/(int)y;
int q=(int)x%(int)y;
System.out.printf("%d %d %f\n",p,q,x/y);
	}

}