import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums = br.readLine().split(" ");
        long a = Long.parseLong(nums[0]);
        long b = Long.parseLong(nums[1]);
        System.out.println((a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)));
    }
} import java.io.*; io.* java class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums = br.readLine().split(" ");
        long a = Long.parseLong(nums[0]);
        long b = Long.parseLong(nums[1]);
        System.out.println((a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)));
    }
} Main public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums = br.readLine().split(" ");
        long a = Long.parseLong(nums[0]);
        long b = Long.parseLong(nums[1]);
        System.out.println((a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)));
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums = br.readLine().split(" ");
        long a = Long.parseLong(nums[0]);
        long b = Long.parseLong(nums[1]);
        System.out.println((a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)));
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] nums = br.readLine().split(" "); nums br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " long a = Long.parseLong(nums[0]); a Long.parseLong(nums[0]) Long.parseLong Long nums[0] nums 0 long b = Long.parseLong(nums[1]); b Long.parseLong(nums[1]) Long.parseLong Long nums[1] nums 1 System.out.println((a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b))) System.out.println System.out System System.out (a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)) " " (a % b) (a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)) (a / b) a b " " (a % b) a b " " String.format("%f", ((double) a / b)) String.format String "%f" ((double) a / b) (double) a b String[] args args
import java.io.*;

class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] nums = br.readLine().split(" ");
        long a = Long.parseLong(nums[0]);
        long b = Long.parseLong(nums[1]);
        System.out.println((a / b) + " " + (a % b) + " " + String.format("%f", ((double) a / b)));
    }
}