import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	}

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

	public static void main(String[] args) {

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	}

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

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	} main {

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	} double a = 0; a 0 double b = 0; b 0 Scanner in = new Scanner(System.in); in new Scanner(System.in) a = in.nextDouble() a in.nextDouble() in.nextDouble in b = in.nextDouble() b in.nextDouble() in.nextDouble in int d = (int) (a / b); d (int) (a / b) a b int r = (int) (a % b); r (int) (a % b) a b double f = a / b; f a / b a b System.out.println(d + " " + r + " " + String.format("%f", f)) System.out.println System.out System System.out d + " " + r + " " + String.format("%f", f) " " r d + " " + r + " " + String.format("%f", f) d " " r " " String.format("%f", f) String.format String "%f" f String[] args args public class Main {

	public static void main(String[] args) {

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	}

} public class Main {

	public static void main(String[] args) {

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		double a = 0;
		double b = 0;

		Scanner in = new Scanner(System.in);

		a = in.nextDouble();
		b = in.nextDouble();

		int d = (int) (a / b);
		int r = (int) (a % b);
		double f = a / b;

		System.out.println(d + " " + r + " " + String.format("%f", f));

	}

}