import java.util.*;

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

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