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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 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 scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 5, BigDecimal.ROUND_HALF_UP);
		System.out.println(d + " " + r + " " + f);
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 5, BigDecimal.ROUND_HALF_UP);
		System.out.println(d + " " + r + " " + f);
	} main {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 5, BigDecimal.ROUND_HALF_UP);
		System.out.println(d + " " + r + " " + 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 scan.close() scan.close scan int d = a / b; d a / b a b int r = a % b; r a % b a b BigDecimal da = new BigDecimal(a); da new BigDecimal(a) BigDecimal db = new BigDecimal(b); db new BigDecimal(b) BigDecimal f = da.divide(db, 5, BigDecimal.ROUND_HALF_UP); f da.divide(db, 5, BigDecimal.ROUND_HALF_UP) da.divide da db 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 scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 5, BigDecimal.ROUND_HALF_UP);
		System.out.println(d + " " + r + " " + f);
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 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 scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		scan.close();
		int d = a / b;
		int r = a % b;
		BigDecimal da = new BigDecimal(a);
		BigDecimal db = new BigDecimal(b);
		BigDecimal f = da.divide(db, 5, BigDecimal.ROUND_HALF_UP);
		System.out.println(d + " " + r + " " + f);
	}
}