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;
       int r;
       double f;
       
       d = a / b;
       r = a % b;
       f = 1.0 * a / b;
       
       System.out.print(d + " " + r + " " + String.format("%8f", f));
    }
} 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;
       int r;
       double f;
       
       d = a / b;
       r = a % b;
       f = 1.0 * a / b;
       
       System.out.print(d + " " + r + " " + String.format("%8f", f));
    }
} Main public static void main(String[] args){
       Scanner scan = new Scanner(System.in);
       int a = scan.nextInt();
       int b = scan.nextInt();
       int d;
       int r;
       double f;
       
       d = a / b;
       r = a % b;
       f = 1.0 * a / b;
       
       System.out.print(d + " " + r + " " + String.format("%8f", f));
    } main {
       Scanner scan = new Scanner(System.in);
       int a = scan.nextInt();
       int b = scan.nextInt();
       int d;
       int r;
       double f;
       
       d = a / b;
       r = a % b;
       f = 1.0 * a / b;
       
       System.out.print(d + " " + r + " " + String.format("%8f", f));
    } 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; d int r; r double f; f d = a / b d a / b a b r = a % b r a % b a b f = 1.0 * a / b f 1.0 * a / b 1.0 * a 1.0 a b System.out.print(d + " " + r + " " + String.format("%8f", f)) System.out.print System.out System System.out d + " " + r + " " + String.format("%8f", f) " " r d + " " + r + " " + String.format("%8f", f) d " " r " " String.format("%8f", f) String.format String "%8f" f String[] args args
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;
       int r;
       double f;
       
       d = a / b;
       r = a % b;
       f = 1.0 * a / b;
       
       System.out.print(d + " " + r + " " + String.format("%8f", f));
    }
}