import java.util.Scanner;
import java.text.DecimalFormat;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	}
} import java.util.Scanner; Scanner java.util import java.text.DecimalFormat; DecimalFormat java.text public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d = a/b; d a/b a b int r = a%b; r a%b a b DecimalFormat df1 = new DecimalFormat("0.00000"); df1 new DecimalFormat("0.00000") double a2 = a; a2 a double b2 = b; b2 b double f = a2/b2; f a2/b2 a2 b2 System.out.println(d +" "+ r +" "+ df1.format(f)) System.out.println System.out System System.out d +" "+ r +" "+ df1.format(f) " " r d +" "+ r +" "+ df1.format(f) d " " r " " df1.format(f) df1.format df1 f String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	}
} Main
import java.util.Scanner;
import java.text.DecimalFormat;
public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int d = a/b;
		int r = a%b;
		 DecimalFormat df1 = new DecimalFormat("0.00000");
		double a2 = a;
		double b2 = b;
		double f = a2/b2;
		System.out.println(d +" "+ r +" "+ df1.format(f));
	}
}