import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	}

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

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double b = sc.nextDouble(); b sc.nextDouble() sc.nextDouble sc int d = (int)a / (int)b; d (int)a / (int)b (int)a (int)b int r = (int)a % (int)b; r (int)a % (int)b (int)a (int)b double f = a / b; f a / b a b System.out.printf(d + " " + r + " " + " " + "%.5f",f) System.out.printf System.out System System.out d + " " + r + " " + " " + "%.5f" " " " " r d + " " + r + " " + " " + "%.5f" d " " r " " " " "%.5f" f sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		double a = sc.nextDouble();
		double b = sc.nextDouble();
		
		int d = (int)a / (int)b;
		int r = (int)a % (int)b;
		double f = a / b;
		
		System.out.printf(d + " " + r + " " + " " + "%.5f",f);
		
		sc.close();
	}

}