import java.text.DecimalFormat;
import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    }
} import java.text.DecimalFormat; DecimalFormat java.text import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int d; d int r; r double f; f d = a / b d a / b a b r = a % b r a % b a b f = ((double) a) / b f ((double) a) / b ((double) a) b DecimalFormat df = new DecimalFormat("0.000000000"); df new DecimalFormat("0.000000000") String n = df.format(f); n df.format(f) df.format df f System.out.println(d + " " + r + " " + n) System.out.println System.out System System.out d + " " + r + " " + n " " r d + " " + r + " " + n d " " r " " n String[] args args public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    }
} public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    }
} Main
import java.text.DecimalFormat;
import java.util.Scanner;

/**
 *
 * @author lenovo
 */
public class Main {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int d;
        int r;
        double f;

        d = a / b;
        r = a % b;
        f = ((double) a) / b;
       
        DecimalFormat df = new DecimalFormat("0.000000000");
        //  DecimalFormat df = new DecimalFormat("###.000");
        String n = df.format(f);
        System.out.println(d + " " + r + " " + n);
    }
}