import java.util.Scanner;
import java.lang.Object;
import java.math.*;
public class Main{
	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	}
} import java.util.Scanner; Scanner java.util import java.lang.Object; Object java.lang import java.math.*; math.* java public class Main{
	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	}
} Main public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	} main {
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	} Scanner stdIn=new Scanner(System.in); stdIn new Scanner(System.in) int a=stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b=stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn int d=a/b; d a/b a b int r=a%b; r a%b a b double 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.println(BigDecimal.valueOf(f).toPlainString()) System.out.println System.out System System.out BigDecimal.valueOf(f).toPlainString() BigDecimal.valueOf(f).toPlainString BigDecimal.valueOf(f) BigDecimal.valueOf BigDecimal f String[] args args public class Main{
	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	}
} public class Main{
	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	}
} Main
import java.util.Scanner;
import java.lang.Object;
import java.math.*;
public class Main{
	public static void main(String[] args){
		Scanner stdIn=new Scanner(System.in);
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int d=a/b;
		int r=a%b;
		double f=(double)a/b;
		System.out.print(d+" "+r+" ");
		System.out.println(BigDecimal.valueOf(f).toPlainString());
	}
}