import java.io.*;
  
public class Main {
  
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    }
} import java.io.*; io.* java public class Main {
  
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    }
} Main public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){} catch(IOException e){} IOException e {} {
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    } String[] data = br.readLine().split(" "); data br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int a = Integer.parseInt(data[0]); a Integer.parseInt(data[0]) Integer.parseInt Integer data[0] data 0 int b = Integer.parseInt(data[1]); b Integer.parseInt(data[1]) Integer.parseInt Integer data[1] data 1 System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b))) System.out
            .println System.out System System.out (a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)) " " (a % b) (a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)) (a / b) a b " " (a % b) a b " " String.format("%.5f", ((double) a / (double) b)) String.format String "%.5f" ((double) a / (double) b) (double) a (double) b String[] args args public class Main {
  
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    }
} public class Main {
  
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    }
} Main
import java.io.*;
  
public class Main {
  
    public static void main(String[] args){
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        try{
        
        String[] data = br.readLine().split(" ");
        int a = Integer.parseInt(data[0]);
        int b = Integer.parseInt(data[1]);
 
        System.out
            .println((a / b) + " " + (a % b) + " "
                + String.format("%.5f", ((double) a / (double) b)));
                
    }catch(IOException e){}
    }
}