import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;


public class Main {
	public void exec() throws IOException {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	}

	public static void main(String[] args) throws IOException {
		new Main().exec();
	}
} import java.io.IOException; IOException java.io import java.io.PrintWriter; PrintWriter java.io import java.util.Scanner; Scanner java.util public class Main {
	public void exec() throws IOException {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	}

	public static void main(String[] args) throws IOException {
		new Main().exec();
	}
} Main public void exec() throws IOException {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	} exec {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	} Scanner input = new Scanner(System.in); input new Scanner(System.in) PrintWriter out = new PrintWriter(System.out); out new PrintWriter(System.out) int a = input.nextInt(); a input.nextInt() input.nextInt input int b = input.nextInt(); b input.nextInt() input.nextInt input out.printf("%d %d %.5f", a/b,a%b,(double)a/b) out.printf out "%d %d %.5f" a/b a b a%b a b (double)a/b (double)a b out.flush() out.flush out input.close() input.close input public static void main(String[] args) throws IOException {
		new Main().exec();
	} main {
		new Main().exec();
	} new Main().exec() new Main().exec new Main() String[] args args public class Main {
	public void exec() throws IOException {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	}

	public static void main(String[] args) throws IOException {
		new Main().exec();
	}
} public class Main {
	public void exec() throws IOException {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	}

	public static void main(String[] args) throws IOException {
		new Main().exec();
	}
} Main
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;


public class Main {
	public void exec() throws IOException {
		Scanner input = new Scanner(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int a = input.nextInt();
		int b = input.nextInt();
		out.printf("%d %d %.5f", a/b,a%b,(double)a/b);
		out.flush();
		input.close();
	}

	public static void main(String[] args) throws IOException {
		new Main().exec();
	}
}