import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	} 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 double ab = (double)a / b; ab (double)a / b (double)a b System.out.println(String.format("%d %d %.6f", a/b, a%b, ab)) System.out.println System.out System System.out String.format("%d %d %.6f", a/b, a%b, ab) String.format String "%d %d %.6f" a/b a b a%b a b ab sc.close() sc.close sc String[] args args public class Main {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	}
} public class Main {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	}
} Main
import java.util.Scanner;


public class Main {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		
		double ab = (double)a / b;
		
		System.out.println(String.format("%d %d %.6f", a/b, a%b, ab));
		sc.close();
	}
}