import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan double dbA = 1.00000 * a; dbA 1.00000 * a 1.00000 a int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan double dbB = 1.00000 * b; dbB 1.00000 * b 1.00000 b scan.close() scan.close scan int d = a / b; d a / b a b int r = a % b; r a % b a b double f = dbA / dbB; f dbA / dbB dbA dbB System.out.print(d + " " +r + " ") System.out.print System.out System System.out d + " " +r + " " r d + " " +r + " " d " " r " " System.out.printf("%.5f", f) System.out.printf System.out System System.out "%.5f" f String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	}

} Main
import java.util.Scanner;


public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner scan = new Scanner(System.in);
		
		int a = scan.nextInt();
		double dbA = 1.00000 * a;
		int b = scan.nextInt();
		double dbB = 1.00000 * b;
		scan.close();
		//System.out.println("dbA:" + dbA);
		
		int d = a / b;
		int r = a % b;
		double f = dbA / dbB;
		
		System.out.print(d + " " +r + " ");
		System.out.printf("%.5f", f);
		
	}

}