import java.math.BigDecimal;
import java.util.Scanner;
 
class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        int d = a / b;
        int r = a % b;
        double f = 1.0 * a / b;
        BigDecimal g = new BigDecimal(f);
        g = g.setScale(5,BigDecimal.ROUND_HALF_UP);
        System.out.printf("%d" + " " + "%d" + " " + "%.5f",d, r, g);
    }
} import java.math.BigDecimal; BigDecimal java.math import java.util.Scanner; Scanner java.util class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        int d = a / b;
        int r = a % b;
        double f = 1.0 * a / b;
        BigDecimal g = new BigDecimal(f);
        g = g.setScale(5,BigDecimal.ROUND_HALF_UP);
        System.out.printf("%d" + " " + "%d" + " " + "%.5f",d, r, g);
    }
} Main public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        int d = a / b;
        int r = a % b;
        double f = 1.0 * a / b;
        BigDecimal g = new BigDecimal(f);
        g = g.setScale(5,BigDecimal.ROUND_HALF_UP);
        System.out.printf("%d" + " " + "%d" + " " + "%.5f",d, r, g);
    } main {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        int d = a / b;
        int r = a % b;
        double f = 1.0 * a / b;
        BigDecimal g = new BigDecimal(f);
        g = g.setScale(5,BigDecimal.ROUND_HALF_UP);
        System.out.printf("%d" + " " + "%d" + " " + "%.5f",d, r, g);
    } Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int a = scan.nextInt(); a scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int d = a / b; d a / b a b int r = a % b; r a % b a b double f = 1.0 * a / b; f 1.0 * a / b 1.0 * a 1.0 a b BigDecimal g = new BigDecimal(f); g new BigDecimal(f) g = g.setScale(5,BigDecimal.ROUND_HALF_UP) g g.setScale(5,BigDecimal.ROUND_HALF_UP) g.setScale g 5 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.printf("%d" + " " + "%d" + " " + "%.5f",d, r, g) System.out.printf System.out System System.out "%d" + " " + "%d" + " " + "%.5f" " " "%d" "%d" + " " + "%d" + " " + "%.5f" "%d" " " "%d" " " "%.5f" d r g String[] args args
import java.math.BigDecimal;
import java.util.Scanner;
 
class Main {
 
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();

        int d = a / b;
        int r = a % b;
        double f = 1.0 * a / b;
        BigDecimal g = new BigDecimal(f);
        g = g.setScale(5,BigDecimal.ROUND_HALF_UP);
        System.out.printf("%d" + " " + "%d" + " " + "%.5f",d, r, g);
    }
}