import java.util.*;
import java.io.*;

class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] str = s.split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        if(!(a<1) || (b>Math.pow(10,9))){
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        }
    }
} import java.util.*; util.* java import java.io.*; io.* java class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] str = s.split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        if(!(a<1) || (b>Math.pow(10,9))){
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        }
    }
} Main public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] str = s.split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        if(!(a<1) || (b>Math.pow(10,9))){
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] str = s.split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        if(!(a<1) || (b>Math.pow(10,9))){
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        }
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String s = br.readLine(); s br.readLine() br.readLine br String[] str = s.split(" "); str s.split(" ") s.split s " " int a = Integer.parseInt(str[0]); a Integer.parseInt(str[0]) Integer.parseInt Integer str[0] str 0 int b = Integer.parseInt(str[1]); b Integer.parseInt(str[1]) Integer.parseInt Integer str[1] str 1 if(!(a<1) || (b>Math.pow(10,9))){
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        } !(a<1) || (b>Math.pow(10,9)) !(a<1) (a<1) a 1 (b>Math.pow(10,9)) b Math.pow(10,9) Math.pow Math 10 9 {
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        } int num1 = a / b; num1 a / b a b int num2 = a % b; num2 a % b a b String num3 = String.format("%.5f",((double)a / (double)b)); num3 String.format("%.5f",((double)a / (double)b)) String.format String "%.5f" ((double)a / (double)b) (double)a (double)b System.out.println(num1+" "+ num2 +" "+ num3) System.out.println System.out System System.out num1+" "+ num2 +" "+ num3 " " num2 num1+" "+ num2 +" "+ num3 num1 " " num2 " " num3 String args[] args
import java.util.*;
import java.io.*;

class Main{
    public static void main(String args[])throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] str = s.split(" ");
        int a = Integer.parseInt(str[0]);
        int b = Integer.parseInt(str[1]);
        if(!(a<1) || (b>Math.pow(10,9))){
            
            int num1 = a / b;
            int num2 = a % b;
            String num3 = String.format("%.5f",((double)a / (double)b));
            System.out.println(num1+" "+ num2 +" "+ num3);
            
            //System.out.println(String.format("%d %d %.5f",a/b,a%b,(double)a/b));
        }
    }
}