import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	} main {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) long a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn long b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn long d = a / b; d a / b a b long r = a % b; r a % b a b double f = (double)a / (double)b; f (double)a / (double)b (double)a (double)b System.out.print(d + " " + r + " ") System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.printf("%f\n", f) System.out.printf System.out System System.out "%f\n" f String[] args args public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	}
} Main
import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		long a = stdIn.nextInt();
		long b = stdIn.nextInt();
		
		long d = a / b;
		long r = a % b;
		double f = (double)a / (double)b;
		
		System.out.print(d + " " + r + " ");
		System.out.printf("%f\n", f);
	}
}