import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	}

} Main public static void main(String[] args){
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	} main {
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	} Scanner a = new Scanner(System.in); a new Scanner(System.in) int b = a.nextInt(); b a.nextInt() a.nextInt a int c = a.nextInt(); c a.nextInt() a.nextInt a int d d r; r double f; f d = b/c d b/c b c r = b - (c * d) r b - (c * d) b (c * d) c d f = (double)b/(double)c f (double)b/(double)c (double)b (double)c System.out.print(d+" "+r+" ") System.out.print System.out System System.out d+" "+r+" " r d+" "+r+" " d " " r " " System.out.printf("%.8f\n",f) System.out.printf System.out System System.out "%.8f\n" f String[] args args public class Main {
	public static void main(String[] args){
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	}

} public class Main {
	public static void main(String[] args){
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner a = new Scanner(System.in);
		int b = a.nextInt();
		int c = a.nextInt();
		int d,r;
		double f;
		d = b/c;
		r = b - (c * d);
		f = (double)b/(double)c;
		//BigDecimal x = new BigDecimal(f);
		//x = x.setScale(13, BigDecimal.ROUND_HALF_UP);
		//System.out.print(d+" "+r+" "+x);
		System.out.print(d+" "+r+" ");
		System.out.printf("%.8f\n",f);
	}

}