import java.util.Scanner;

/**
 * Created by labuser on 2016/04/20.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    }


} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    }


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

    } main {
        new Main().run();

    } new Main().run() new Main().run new Main() String[] args args private void run() {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    } run {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    } int a a b; b double f; f Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] input = sc.nextLine().split(" "); input sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " a = Integer.parseInt(input[0]) a Integer.parseInt(input[0]) Integer.parseInt Integer input[0] input 0 b = Integer.parseInt(input[1]) b Integer.parseInt(input[1]) Integer.parseInt Integer input[1] input 1 f = 1.0 * a / b f 1.0 * a / b 1.0 * a 1.0 a b System.out.printf("%d %d %.5f\n",a/b,a%b,f) System.out.printf System.out System System.out "%d %d %.5f\n" a/b a b a%b a b f public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    }


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

    }

    private void run() {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    }


} Main
import java.util.Scanner;

/**
 * Created by labuser on 2016/04/20.
 */
public class Main {
    public static void main(String[] args) {
        new Main().run();

    }

    private void run() {

        int a, b;
        double f;
        Scanner sc = new Scanner(System.in);
        String[] input = sc.nextLine().split(" ");
        a = Integer.parseInt(input[0]);
        b = Integer.parseInt(input[1]);
        f = 1.0 * a / b;
        System.out.printf("%d %d %.5f\n",a/b,a%b,f);


    }


}