import java.util.Scanner;


public class Main
{

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		int a,b;
		double f;
		a=in.nextInt();
		b=in.nextInt();
		f=(double)a/b;
		
		System.out.printf("%d %d %1.5f",(a/b),(a%b),f);

	}

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

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		int a,b;
		double f;
		a=in.nextInt();
		b=in.nextInt();
		f=(double)a/b;
		
		System.out.printf("%d %d %1.5f",(a/b),(a%b),f);

	}

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

	} main {
		Scanner in =new Scanner(System.in);
		int a,b;
		double f;
		a=in.nextInt();
		b=in.nextInt();
		f=(double)a/b;
		
		System.out.printf("%d %d %1.5f",(a/b),(a%b),f);

	} Scanner in =new Scanner(System.in); in new Scanner(System.in) int a a b; b double f; f a=in.nextInt() a in.nextInt() in.nextInt in b=in.nextInt() b in.nextInt() in.nextInt in f=(double)a/b f (double)a/b (double)a b System.out.printf("%d %d %1.5f",(a/b),(a%b),f) System.out.printf System.out System System.out "%d %d %1.5f" (a/b) a b (a%b) a b f String[] args args public class Main
{

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		int a,b;
		double f;
		a=in.nextInt();
		b=in.nextInt();
		f=(double)a/b;
		
		System.out.printf("%d %d %1.5f",(a/b),(a%b),f);

	}

} public class Main
{

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		int a,b;
		double f;
		a=in.nextInt();
		b=in.nextInt();
		f=(double)a/b;
		
		System.out.printf("%d %d %1.5f",(a/b),(a%b),f);

	}

} Main
import java.util.Scanner;


public class Main
{

	public static void main(String[] args)
	{
		Scanner in =new Scanner(System.in);
		int a,b;
		double f;
		a=in.nextInt();
		b=in.nextInt();
		f=(double)a/b;
		
		System.out.printf("%d %d %1.5f",(a/b),(a%b),f);

	}

}