import java.util.Scanner;

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

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	}
} Main public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	} main {

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) scanner.hasNext() scanner.hasNext scanner int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner double c = (double)a/(double)b; c (double)a/(double)b (double)a (double)b System.out.print(a/b + " ") System.out.print System.out System System.out a/b + " " a/b a b " " System.out.print(a%b + " ") System.out.print System.out System System.out a%b + " " a%b a b " " String after = String.format("%.16f", c); after String.format("%.16f", c) String.format String "%.16f" c System.out.println(after) System.out.println System.out System System.out after String[] args args public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	}
} public class Main {
	public static void main(String[] args) {

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	}
} Main
import java.util.Scanner;

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

		Scanner scanner = new Scanner(System.in);

		scanner.hasNext();

		int a = scanner.nextInt();
		int b = scanner.nextInt();

		double c = (double)a/(double)b;

		System.out.print(a/b + " ");
		System.out.print(a%b + " ");

		String after = String.format("%.16f", c);
		System.out.println(after);
	}
}