import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	}

} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	}

} Main public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	} main {
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) int a = stdIn.nextInt(); a stdIn.nextInt() stdIn.nextInt stdIn int b = stdIn.nextInt(); b stdIn.nextInt() stdIn.nextInt stdIn 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.printf("%.5f",(double)a/b) System.out.printf System.out System System.out "%.5f" (double)a/b (double)a b String[] args args public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	}

} public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	}

} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args)
	{
		Scanner stdIn = new Scanner(System.in);
		
		int a = stdIn.nextInt();
		int b = stdIn.nextInt();
		
		System.out.print(a/b+" ");
		System.out.print(a%b+" ");
		System.out.printf("%.5f",(double)a/b);
	}

}