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 x = Integer.parseInt(strAry[0]);
    int y = Integer.parseInt(strAry[1]);

    int d = x/y;
    int r = x % y;
    String f = String.format("%.5f", ((double)x/(double)y));
    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 x = Integer.parseInt(strAry[0]);
    int y = Integer.parseInt(strAry[1]);

    int d = x/y;
    int r = x % y;
    String f = String.format("%.5f", ((double)x/(double)y));
    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 x = Integer.parseInt(strAry[0]);
    int y = Integer.parseInt(strAry[1]);

    int d = x/y;
    int r = x % y;
    String f = String.format("%.5f", ((double)x/(double)y));
    System.out.println(d +" "+ r +" "+ f);
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    String[] strAry = str.split(" ");
     
    int x = Integer.parseInt(strAry[0]);
    int y = Integer.parseInt(strAry[1]);

    int d = x/y;
    int r = x % y;
    String f = String.format("%.5f", ((double)x/(double)y));
    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 x = Integer.parseInt(strAry[0]); x Integer.parseInt(strAry[0]) Integer.parseInt Integer strAry[0] strAry 0 int y = Integer.parseInt(strAry[1]); y Integer.parseInt(strAry[1]) Integer.parseInt Integer strAry[1] strAry 1 int d = x/y; d x/y x y int r = x % y; r x % y x y String f = String.format("%.5f", ((double)x/(double)y)); f String.format("%.5f", ((double)x/(double)y)) String.format String "%.5f" ((double)x/(double)y) (double)x (double)y 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 x = Integer.parseInt(strAry[0]);
    int y = Integer.parseInt(strAry[1]);

    int d = x/y;
    int r = x % y;
    String f = String.format("%.5f", ((double)x/(double)y));
    System.out.println(d +" "+ r +" "+ f);
  }
}