import java.util.Scanner;

public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  }
} import java.util.Scanner; Scanner java.util public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  }
} Main private static int a a b; b public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  } main {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  } Scanner stdIn = new Scanner(System.in); stdIn new Scanner(System.in) a = stdIn.nextInt() a stdIn.nextInt() stdIn.nextInt stdIn b = stdIn.nextInt() b stdIn.nextInt() stdIn.nextInt stdIn System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b)) System.out.printf System.out System System.out "%d %d %.5f\n" (a/b) a b (a%b) a b ((double)a/b) (double)a b String[] args args public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  }
} public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  }
} Main
import java.util.Scanner;

public class Main {
  private static int a, b;
  public static void main(String[] args) {
    Scanner stdIn = new Scanner(System.in);
    a = stdIn.nextInt();
    b = stdIn.nextInt();

    System.out.printf("%d %d %.5f\n", (a/b), (a%b), ((double)a/b));
  }
}