import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    }
} import java.io.IOException; IOException java.io import java.math.BigDecimal; BigDecimal java.math import java.math.RoundingMode; RoundingMode java.math import java.util.Scanner; Scanner java.util public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    }
} Main public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    } main {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    } final String SPACE = " "; SPACE " " Scanner sc = new Scanner(System.in); sc new Scanner(System.in) final int a1 = sc.nextInt(); a1 sc.nextInt() sc.nextInt sc final int b1 = sc.nextInt(); b1 sc.nextInt() sc.nextInt sc final BigDecimal a2 = new BigDecimal(a1); a2 new BigDecimal(a1) final BigDecimal b2 = new BigDecimal(b1); b2 new BigDecimal(b1) final long d = a1 / b1; d a1 / b1 a1 b1 final long r = a1 % b1; r a1 % b1 a1 b1 final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP); f a2.divide(b2, 5, RoundingMode.HALF_UP) a2.divide a2 b2 5 RoundingMode.HALF_UP RoundingMode RoundingMode.HALF_UP StringBuilder sb = new StringBuilder(); sb new StringBuilder() sb.append(d).append(SPACE).append(r).append(SPACE).append(f) sb.append(d).append(SPACE).append(r).append(SPACE).append sb.append(d).append(SPACE).append(r).append(SPACE) sb.append(d).append(SPACE).append(r).append sb.append(d).append(SPACE).append(r) sb.append(d).append(SPACE).append sb.append(d).append(SPACE) sb.append(d).append sb.append(d) sb.append sb d SPACE r SPACE f System.out.println(sb) System.out.println System.out System System.out sb String[] args args public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    }
} public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    }
} Main
import java.io.IOException;
import java.math.BigDecimal;
import java.math.RoundingMode;
import java.util.Scanner;

public class Main {

    public static void main(String[] args) throws IOException {
        final String SPACE = " ";
        Scanner sc = new Scanner(System.in);

        final int a1 = sc.nextInt();
        final int b1 = sc.nextInt();

        final BigDecimal a2 = new BigDecimal(a1);
        final BigDecimal b2 = new BigDecimal(b1);

        final long d = a1 / b1;
        final long r = a1 % b1;
        final BigDecimal f = a2.divide(b2, 5, RoundingMode.HALF_UP);

        StringBuilder sb = new StringBuilder();
        sb.append(d).append(SPACE).append(r).append(SPACE).append(f);

        System.out.println(sb);
    }
}