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