import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main {
  public static void main(String[] args) throws IOException {
    int d, r;
    double a, b, f;
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] strArray = input.split(" ");
    a = Integer.parseInt(strArray[0]);
    b = Integer.parseInt(strArray[1]);
    d = getD(a, b);
    r = getR(a, b);
    f = getF(a, b);
    System.out.printf("%d %d %.5f", d, r, f);
  }
  static int getD(double a, double b) {
    return (int)(a / b);
  }
  static int getR(double a, double b) {
    return (int)(a % b);
  }
  static double getF(double a, double b) {
    return a / b;
  }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.io.IOException; IOException java.io class Main {
  public static void main(String[] args) throws IOException {
    int d, r;
    double a, b, f;
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] strArray = input.split(" ");
    a = Integer.parseInt(strArray[0]);
    b = Integer.parseInt(strArray[1]);
    d = getD(a, b);
    r = getR(a, b);
    f = getF(a, b);
    System.out.printf("%d %d %.5f", d, r, f);
  }
  static int getD(double a, double b) {
    return (int)(a / b);
  }
  static int getR(double a, double b) {
    return (int)(a % b);
  }
  static double getF(double a, double b) {
    return a / b;
  }
} Main public static void main(String[] args) throws IOException {
    int d, r;
    double a, b, f;
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] strArray = input.split(" ");
    a = Integer.parseInt(strArray[0]);
    b = Integer.parseInt(strArray[1]);
    d = getD(a, b);
    r = getR(a, b);
    f = getF(a, b);
    System.out.printf("%d %d %.5f", d, r, f);
  } main {
    int d, r;
    double a, b, f;
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] strArray = input.split(" ");
    a = Integer.parseInt(strArray[0]);
    b = Integer.parseInt(strArray[1]);
    d = getD(a, b);
    r = getR(a, b);
    f = getF(a, b);
    System.out.printf("%d %d %.5f", d, r, f);
  } int d d r; r double a a b b f; f BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String input = br.readLine(); input br.readLine() br.readLine br String[] strArray = input.split(" "); strArray input.split(" ") input.split input " " a = Integer.parseInt(strArray[0]) a Integer.parseInt(strArray[0]) Integer.parseInt Integer strArray[0] strArray 0 b = Integer.parseInt(strArray[1]) b Integer.parseInt(strArray[1]) Integer.parseInt Integer strArray[1] strArray 1 d = getD(a, b) d getD(a, b) getD a b r = getR(a, b) r getR(a, b) getR a b f = getF(a, b) f getF(a, b) getF a b System.out.printf("%d %d %.5f", d, r, f) System.out.printf System.out System System.out "%d %d %.5f" d r f String[] args args static int getD(double a, double b) {
    return (int)(a / b);
  } getD {
    return (int)(a / b);
  } return (int)(a / b); (int)(a / b) a b double a a double b b static int getR(double a, double b) {
    return (int)(a % b);
  } getR {
    return (int)(a % b);
  } return (int)(a % b); (int)(a % b) a b double a a double b b static double getF(double a, double b) {
    return a / b;
  } getF {
    return a / b;
  } return a / b; a / b a b double a a double b b
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
class Main {
  public static void main(String[] args) throws IOException {
    int d, r;
    double a, b, f;
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String input = br.readLine();
    String[] strArray = input.split(" ");
    a = Integer.parseInt(strArray[0]);
    b = Integer.parseInt(strArray[1]);
    d = getD(a, b);
    r = getR(a, b);
    f = getF(a, b);
    System.out.printf("%d %d %.5f", d, r, f);
  }
  static int getD(double a, double b) {
    return (int)(a / b);
  }
  static int getR(double a, double b) {
    return (int)(a % b);
  }
  static double getF(double a, double b) {
    return a / b;
  }
}