import java.math.BigDecimal;
import java.util.Scanner;

class Main{
    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int   a = sc.nextInt();
        int   b = sc.nextInt();
        long  d = a/b;
        int   r = a%b;
        double f = (double)a/b;
        sc.close();

        System.out.println(new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString()));
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util class Main{
    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int   a = sc.nextInt();
        int   b = sc.nextInt();
        long  d = a/b;
        int   r = a%b;
        double f = (double)a/b;
        sc.close();

        System.out.println(new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString()));
    }
} Main public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int   a = sc.nextInt();
        int   b = sc.nextInt();
        long  d = a/b;
        int   r = a%b;
        double f = (double)a/b;
        sc.close();

        System.out.println(new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString()));
    } main {

        Scanner sc = new Scanner(System.in);
        int   a = sc.nextInt();
        int   b = sc.nextInt();
        long  d = a/b;
        int   r = a%b;
        double f = (double)a/b;
        sc.close();

        System.out.println(new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString()));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int   a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int   b = sc.nextInt(); b sc.nextInt() sc.nextInt sc long  d = a/b; d a/b a b int   r = a%b; r a%b a b double f = (double)a/b; f (double)a/b (double)a b sc.close() sc.close sc System.out.println(new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString())) System.out.println System.out System System.out new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString()) new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ") new StringBuilder()
            .append(d).append(" ")
            .append(r).append new StringBuilder()
            .append(d).append(" ")
            .append(r) new StringBuilder()
            .append(d).append(" ")
            .append new StringBuilder()
            .append(d).append(" ") new StringBuilder()
            .append(d).append new StringBuilder()
            .append(d) new StringBuilder()
            .append new StringBuilder() d " " r " " BigDecimal.valueOf(f).toPlainString() BigDecimal.valueOf(f).toPlainString BigDecimal.valueOf(f) BigDecimal.valueOf BigDecimal f String args[] args
import java.math.BigDecimal;
import java.util.Scanner;

class Main{
    public static void main(String args[]){

        Scanner sc = new Scanner(System.in);
        int   a = sc.nextInt();
        int   b = sc.nextInt();
        long  d = a/b;
        int   r = a%b;
        double f = (double)a/b;
        sc.close();

        System.out.println(new StringBuilder()
            .append(d).append(" ")
            .append(r).append(" ")
            .append(BigDecimal.valueOf(f).toPlainString()));
    }
}