import java.util.Scanner;
class Main {
    public void kami() {
                Scanner sc = new Scanner(System.in);
		int d,r;
		double f;
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		
		
		System.out.printf("%d %1d %.5f ",d , r , f);

    }
	public static void main(String[] args ) {
    new Main().kami();
	}

} import java.util.Scanner; Scanner java.util class Main {
    public void kami() {
                Scanner sc = new Scanner(System.in);
		int d,r;
		double f;
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		
		
		System.out.printf("%d %1d %.5f ",d , r , f);

    }
	public static void main(String[] args ) {
    new Main().kami();
	}

} Main public void kami() {
                Scanner sc = new Scanner(System.in);
		int d,r;
		double f;
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		
		
		System.out.printf("%d %1d %.5f ",d , r , f);

    } kami {
                Scanner sc = new Scanner(System.in);
		int d,r;
		double f;
		double a = sc.nextInt();
		double b = sc.nextInt();
		
		d = (int)(a / b);
		r = (int)(a % b);
		f = a / b;
		
		
		System.out.printf("%d %1d %.5f ",d , r , f);

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

    }
	public static void main(String[] args ) {
    new Main().kami();
	}

}