import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

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

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

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

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

} Main public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

		System.out.println(d + " " + r +" " + str);
	} main {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

		System.out.println(d + " " + r +" " + str);
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a = sc.nextInt(); a sc.nextInt() sc.nextInt sc double b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int d = (int) (a/b); d (int) (a/b) a b int r = (int) (a%b); r (int) (a%b) a b double f = a/b; f a/b a b String str = String.format("%.7f", f); str String.format("%.7f", f) String.format String "%.7f" f sc.close() sc.close sc System.out.println(d + " " + r +" " + str) System.out.println System.out System System.out d + " " + r +" " + str " " r d + " " + r +" " + str d " " r " " str String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

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

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

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

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		double a = sc.nextInt();
		double b = sc.nextInt();
		int d = (int) (a/b);
		int r = (int) (a%b);
		double f = a/b;

		String str = String.format("%.7f", f);
		//BigDecimal bi = new BigDecimal(String.valueOf(f));
		//double k= bi.setScale(9, BigDecimal.ROUND_DOWN).doubleValue();
		sc.close();

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

}