import java.io.*;
import java.text.DecimalFormat;

class Main
{
  public static void main(String[] args) throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split(" ",0);
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);

    int d = a / b;
    int r = a % b;
    double f = (double)a/b;

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

    int d = a / b;
    int r = a % b;
    double f = (double)a/b;

    DecimalFormat df = new DecimalFormat("0.00000000");
    System.out.println(d + " " + r + " " + df.format(f));
  }
} Main public static void main(String[] args) throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split(" ",0);
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);

    int d = a / b;
    int r = a % b;
    double f = (double)a/b;

    DecimalFormat df = new DecimalFormat("0.00000000");
    System.out.println(d + " " + r + " " + df.format(f));
  } main {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split(" ",0);
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);

    int d = a / b;
    int r = a % b;
    double f = (double)a/b;

    DecimalFormat df = new DecimalFormat("0.00000000");
    System.out.println(d + " " + r + " " + df.format(f));
  } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String[] str = br.readLine().split(" ",0); str br.readLine().split(" ",0) br.readLine().split br.readLine() br.readLine br " " 0 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 int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a/b; f (double)a/b (double)a b DecimalFormat df = new DecimalFormat("0.00000000"); df new DecimalFormat("0.00000000") System.out.println(d + " " + r + " " + df.format(f)) System.out.println System.out System System.out d + " " + r + " " + df.format(f) " " r d + " " + r + " " + df.format(f) d " " r " " df.format(f) df.format df f String[] args args
import java.io.*;
import java.text.DecimalFormat;

class Main
{
  public static void main(String[] args) throws IOException
  {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split(" ",0);
    int a = Integer.parseInt(str[0]);
    int b = Integer.parseInt(str[1]);

    int d = a / b;
    int r = a % b;
    double f = (double)a/b;

    DecimalFormat df = new DecimalFormat("0.00000000");
    System.out.println(d + " " + r + " " + df.format(f));
  }
}