import java.io.IOException;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	} main {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long a = sc.nextInt(); a sc.nextInt() sc.nextInt sc long b = sc.nextInt(); b sc.nextInt() sc.nextInt sc long d d r; r double f f x x y; y x=a x a y=b y b d=a/b d a/b a b f=x/y f x/y x y r=a%b r a%b a b System.out.print(d + " ") System.out.print System.out System System.out d + " " d " " System.out.print(r + " ") System.out.print System.out System System.out r + " " 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) {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	}

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
       Scanner sc = new Scanner(System.in);
       long a = sc.nextInt();
       long b = sc.nextInt();
       long d,r;
       double f,x,y;
       x=a;
       y=b;
       d=a/b;
       f=x/y;
       r=a%b;
       System.out.print(d + " ");
       System.out.print(r + " ");
       System.out.printf("%f\n",f);
	}

}