import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		boolean bl = true;
		int a=0,b=0;

		while(bl){
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		}

		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;

		System.out.printf("%d %d %.6f", d,r,f);
	}
} import java.util.Scanner; Scanner java.util class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		boolean bl = true;
		int a=0,b=0;

		while(bl){
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		}

		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;

		System.out.printf("%d %d %.6f", d,r,f);
	}
} Main public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		boolean bl = true;
		int a=0,b=0;

		while(bl){
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		}

		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;

		System.out.printf("%d %d %.6f", d,r,f);
	} main {
		Scanner stdIn = new Scanner(System.in);
		boolean bl = true;
		int a=0,b=0;

		while(bl){
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		}

		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;

		System.out.printf("%d %d %.6f", d,r,f);
	} Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) boolean bl = true; bl true int a=0 a 0 b=0; b 0 while(bl){
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		} bl {
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		} a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			} (1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) (1 <= b) (1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) (1 <= a) 1 a (a <= Math.pow(10, 9)) a Math.pow(10, 9) Math.pow Math 10 9 (1 <= b) 1 b (b <= Math.pow(10, 9)) b Math.pow(10, 9) Math.pow Math 10 9 {
				break;
			} break; int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / (double)b; f (double)a / (double)b (double)a (double)b System.out.printf("%d %d %.6f", d,r,f) System.out.printf System.out System System.out "%d %d %.6f" d r f String[] args args
import java.util.Scanner;

class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		boolean bl = true;
		int a=0,b=0;

		while(bl){
			a = stdIn.nextInt();
			b = stdIn.nextInt();

			if((1 <= a) && (a <= Math.pow(10, 9)) && (1 <= b) && (b <= Math.pow(10, 9)) ){
				break;
			}
		}

		int d = a / b;
		int r = a % b;
		double f = (double)a / (double)b;

		System.out.printf("%d %d %.6f", d,r,f);
	}
}