public class Main {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		}
} public class Main {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		}
} Main public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		} main {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		} java.util.Scanner scan = new java.util.Scanner(System.in); scan new java.util.Scanner(System.in) int a; a int b; b double c; c a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = (double)a/b c (double)a/b (double)a b if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		} 1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9) 1<=b 1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9) 1<=a 1 a a <=Math.pow(10, 9) a Math.pow(10, 9) Math.pow Math 10 9 1<=b 1 b b <=Math.pow(10, 9) b Math.pow(10, 9) Math.pow Math 10 9 {
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		} System.out.print(a/b+" ") System.out.print System.out System System.out a/b+" " a/b a b " " System.out.print(a%b+" ") System.out.print System.out System System.out a%b+" " a%b a b " " System.out.println(String.format("%.5f", c)) System.out.println System.out System System.out String.format("%.5f", c) String.format String "%.5f" c String[] args args public class Main {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		}
} public class Main {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		}
} Main
public class Main {


		public static void main(String[] args) {
		java.util.Scanner scan = new java.util.Scanner(System.in);
		int a;
		int b;
		double c;
		a = scan.nextInt();
		b = scan.nextInt();
		c = (double)a/b;
		
		if(1<=a && a <=Math.pow(10, 9) && 1<=b && b <=Math.pow(10, 9)){
			System.out.print(a/b+" ");
			System.out.print(a%b+" ");
			System.out.println(String.format("%.5f", c));
			
		}
		
			




		}
}