import java.util.Scanner;

public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	}
} import java.util.Scanner; Scanner java.util public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	}
} Main public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	} main {
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long a a b; b a = sc.nextLong() a sc.nextLong() sc.nextLong sc b = sc.nextLong() b sc.nextLong() sc.nextLong sc System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b) System.out.printf System.out System System.out "%d %d %.6f\n" a/b a b a%b a b (double)a/(double)b (double)a (double)b String [] args args public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	}
} public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String [] args){
		Scanner sc = new Scanner(System.in);
		long a,b;
		a = sc.nextLong();
		b = sc.nextLong();
		System.out.printf("%d %d %.6f\n",a/b,a%b,(double)a/(double)b);
		
	}
}