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