import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	}
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	}
} Main public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	} main {
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int intA = scan.nextInt(); intA scan.nextInt() scan.nextInt scan int intB = scan.nextInt(); intB scan.nextInt() scan.nextInt scan int d = intA / intB; d intA / intB intA intB int r = intA % intB; r intA % intB intA intB double f = (intA/(double)intB); f (intA/(double)intB) intA (double)intB BigDecimal x = new BigDecimal(f); x new BigDecimal(f) x = x.setScale(6, BigDecimal.ROUND_HALF_UP) x x.setScale(6, BigDecimal.ROUND_HALF_UP) x.setScale x 6 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.println(d + " " + r + " " + x) System.out.println System.out System System.out d + " " + r + " " + x " " r d + " " + r + " " + x d " " r " " x String[] args args public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	}
} public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	}
} Main
import java.math.BigDecimal;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int intA = scan.nextInt();
		int intB = scan.nextInt();
		int d = intA / intB;
		int r = intA % intB;
		double f = (intA/(double)intB);
		BigDecimal x = new BigDecimal(f);
		x = x.setScale(6, BigDecimal.ROUND_HALF_UP);

		System.out.println(d + " " + r + " " + x);
	}
}