import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	}

} Main public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	} main {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) int y=scan.nextInt(); y scan.nextInt() scan.nextInt scan int x=scan.nextInt(); x scan.nextInt() scan.nextInt scan System.out.print(y/x) System.out.print System.out System System.out y/x y x System.out.print(" "+y%x+" ") System.out.print System.out System System.out " "+y%x+" " " "+y%x+" " " " y%x y x " " System.out.printf("%f",(double)y/x) System.out.printf System.out System System.out "%f" (double)y/x (double)y x System.out.println() System.out.println System.out System System.out String[] args args public class Main {
	public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	}

} public class Main {
	public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		
		int y=scan.nextInt();
		int x=scan.nextInt();
		System.out.print(y/x);
		System.out.print(" "+y%x+" ");
		System.out.printf("%f",(double)y/x);
		System.out.println();
		
		
	}

}