import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b;
       a = in.nextInt();
       b = in.nextInt();
       int d = a/b;
       int r = a%b;
       double f = (double)a / b;
       System.out.printf("%d %d %f\n", d, r, f);
    }
} import java.io.*; io.* java import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b;
       a = in.nextInt();
       b = in.nextInt();
       int d = a/b;
       int r = a%b;
       double f = (double)a / b;
       System.out.printf("%d %d %f\n", d, r, f);
    }
} Main public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b;
       a = in.nextInt();
       b = in.nextInt();
       int d = a/b;
       int r = a%b;
       double f = (double)a / b;
       System.out.printf("%d %d %f\n", d, r, f);
    } main {
       Scanner in = new Scanner(System.in);
       int a, b;
       a = in.nextInt();
       b = in.nextInt();
       int d = a/b;
       int r = a%b;
       double f = (double)a / b;
       System.out.printf("%d %d %f\n", d, r, f);
    } Scanner in = new Scanner(System.in); in new Scanner(System.in) int a a b; b a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in int 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 System.out.printf("%d %d %f\n", d, r, f) System.out.printf System.out System System.out "%d %d %f\n" d r f String[] args args
import java.io.*;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

class Main {
    public static void main(String[] args) throws IOException {
       Scanner in = new Scanner(System.in);
       int a, b;
       a = in.nextInt();
       b = in.nextInt();
       int d = a/b;
       int r = a%b;
       double f = (double)a / b;
       System.out.printf("%d %d %f\n", d, r, f);
    }
}