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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	}

} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	}

} Main public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	} main {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int d = a / b; d a / b a b int r = a % b; r a % b a b BigDecimal biga = BigDecimal.valueOf(a); biga BigDecimal.valueOf(a) BigDecimal.valueOf BigDecimal a BigDecimal bigb = BigDecimal.valueOf(b); bigb BigDecimal.valueOf(b) BigDecimal.valueOf BigDecimal b BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP); f biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP) biga.divide biga bigb 5 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.println(d + " " + r + " " + f) System.out.println System.out System System.out d + " " + r + " " + f " " r d + " " + r + " " + f d " " r " " f String[] args args public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	}

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

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		int d = a / b;
		int r = a % b;
		BigDecimal biga = BigDecimal.valueOf(a);
		BigDecimal bigb = BigDecimal.valueOf(b);
		BigDecimal f = biga.divide(bigb, 5, BigDecimal.ROUND_HALF_UP);
		
		System.out.println(d + " " + r + " " + f);
	}

}