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

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	}

} 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);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	}

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

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	} main {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String s = sc.nextLine(); s sc.nextLine() sc.nextLine sc String[] ss = s.split(" "); ss s.split(" ") s.split s " " int a = Integer.parseInt(ss[0]); a Integer.parseInt(ss[0]) Integer.parseInt Integer ss[0] ss 0 int b = Integer.parseInt(ss[1]); b Integer.parseInt(ss[1]) Integer.parseInt Integer ss[1] ss 1 BigDecimal aa = new BigDecimal(ss[0]); aa new BigDecimal(ss[0]) BigDecimal bb = new BigDecimal(ss[1]); bb new BigDecimal(ss[1]) BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP); ff aa.divide(bb,6,BigDecimal.ROUND_HALF_UP) aa.divide aa bb 6 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.print(a / b) System.out.print System.out System System.out a / b a b System.out.print(" ") System.out.print System.out System System.out " " System.out.print(a % b) System.out.print System.out System System.out a % b a b System.out.print(" ") System.out.print System.out System System.out " " System.out.println(ff) System.out.println System.out System System.out ff String[] args args public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	}

} public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	}

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

public class Main {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		String s = sc.nextLine();
		String[] ss = s.split(" ");
		int a = Integer.parseInt(ss[0]);
		int b = Integer.parseInt(ss[1]);

		BigDecimal aa = new BigDecimal(ss[0]);
		BigDecimal bb = new BigDecimal(ss[1]);
		
		BigDecimal ff = aa.divide(bb,6,BigDecimal.ROUND_HALF_UP);

		System.out.print(a / b);
		System.out.print(" ");
		System.out.print(a % b);
		System.out.print(" ");
		System.out.println(ff);

	}

}