import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	} main {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	} int a a b; b Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc int num1 = (int)a/b; num1 (int)a/b (int)a b int num2 = (int)a%b; num2 (int)a%b (int)a b double num3 = (double)a/(double)b; num3 (double)a/(double)b (double)a (double)b System.out.printf("%d %d %f",num1,num2,num3) System.out.printf System.out System System.out "%d %d %f" num1 num2 num3 sc.close() sc.close sc String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int a,b;
		Scanner sc = new Scanner(System.in);

		a = sc.nextInt();
		b = sc.nextInt();

		int num1 = (int)a/b;
		int num2 = (int)a%b;
		double num3 = (double)a/(double)b;
		System.out.printf("%d %d %f",num1,num2,num3);

		sc.close();
	}

}