import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	}

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

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	}

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

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	} main {

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000"); df new DecimalFormat("0.000000000000000000000000000000") System.out.print(a / b + " " + a % b + " " + df.format((double)a / b)) System.out.print System.out System System.out a / b + " " + a % b + " " + df.format((double)a / b) " " a % b a / b + " " + a % b + " " + df.format((double)a / b) a / b a b " " a % b a b " " df.format((double)a / b) df.format df (double)a / b (double)a b sc.close() sc.close sc String[] args args public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	}

} public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	}

} Main
import java.text.DecimalFormat;
import java.util.Scanner;

public class Main {

	public static void main (String[] args) {

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		DecimalFormat df = new DecimalFormat("0.000000000000000000000000000000");
		System.out.print(a / b + " " + a % b + " " + df.format((double)a / b));
		
		sc.close();
	}

}