import java.util.Scanner;

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

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String args[]){

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	}
} Main public static void main(String args[]){

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	} main {

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int intA = sc.nextInt(); intA sc.nextInt() sc.nextInt sc int intB = sc.nextInt(); intB sc.nextInt() sc.nextInt sc int intD = 0; intD 0 int intE = 0; intE 0 double dbF = 0; dbF 0 intD = intA / intB intD intA / intB intA intB intE = intA % intB intE intA % intB intA intB dbF = (double)intA / (double)intB dbF (double)intA / (double)intB (double)intA (double)intB String stF = String.format("%.5f", dbF); stF String.format("%.5f", dbF) String.format String "%.5f" dbF System.out.println(intD + " " + intE + " " + stF) System.out.println System.out System System.out intD + " " + intE + " " + stF " " intE intD + " " + intE + " " + stF intD " " intE " " stF String args[] args public class Main{
	public static void main(String args[]){

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	}
} public class Main{
	public static void main(String args[]){

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	}
} Main
import java.util.Scanner;

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

		//2????????´??°???????????????
		Scanner sc = new Scanner(System.in);
		int intA = sc.nextInt();
		int intB = sc.nextInt();

		//??´??°???????????????????°???°???????????????
		int intD = 0;
		int intE = 0;
		double dbF = 0;

		intD = intA / intB;
		intE = intA % intB;
		dbF = (double)intA / (double)intB;
		String stF = String.format("%.5f", dbF);

		System.out.println(intD + " " + intE + " " + stF);
	}
}