import java.util.Scanner;

class Main {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();

		scan.close();

		System.out.printf("%d %d %f", a/b, a%b, (double)a / b);
	}

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

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();

		scan.close();

		System.out.printf("%d %d %f", a/b, a%b, (double)a / b);
	}

} Main public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();

		scan.close();

		System.out.printf("%d %d %f", a/b, a%b, (double)a / b);
	} main {

		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();

		scan.close();

		System.out.printf("%d %d %f", a/b, a%b, (double)a / b);
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan scan.close() scan.close scan 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
import java.util.Scanner;

class Main {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();

		scan.close();

		System.out.printf("%d %d %f", a/b, a%b, (double)a / b);
	}

}