import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",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 s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b );
	}

} Main public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b );
	} main {
		Scanner s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b );
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = Integer.parseInt(s.next()); a Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s int b = Integer.parseInt(s.next()); b Integer.parseInt(s.next()) Integer.parseInt Integer s.next() s.next s System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b ) System.out.printf System.out System System.out "%d %d %.5f" 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 s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b );
	}

} public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b );
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		int a = Integer.parseInt(s.next());
		int b = Integer.parseInt(s.next());
		
		System.out.printf("%d %d %.5f",a/b,a%b,(double)a/(double)b );
	}

}