import java.util.Scanner;

class Main
{
  public static void main(String[] args) {
    int a, b;
    Scanner sc = new Scanner(System.in);
    a = sc.nextInt();
    b = sc.nextInt();
    System.out.println((a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)));
  }
} import java.util.Scanner; Scanner java.util class Main
{
  public static void main(String[] args) {
    int a, b;
    Scanner sc = new Scanner(System.in);
    a = sc.nextInt();
    b = sc.nextInt();
    System.out.println((a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)));
  }
} Main public static void main(String[] args) {
    int a, b;
    Scanner sc = new Scanner(System.in);
    a = sc.nextInt();
    b = sc.nextInt();
    System.out.println((a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)));
  } main {
    int a, b;
    Scanner sc = new Scanner(System.in);
    a = sc.nextInt();
    b = sc.nextInt();
    System.out.println((a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)));
  } int a a b; b Scanner sc = new Scanner(System.in); sc new Scanner(System.in) a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc System.out.println((a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b))) System.out.println System.out System System.out (a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)) " " (a%b) (a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)) (a/b) a b " " (a%b) a b " " String.format("%1$4f",((double)a/b)) String.format String "%1$4f" ((double)a/b) (double)a b String[] args args
import java.util.Scanner;

class Main
{
  public static void main(String[] args) {
    int a, b;
    Scanner sc = new Scanner(System.in);
    a = sc.nextInt();
    b = sc.nextInt();
    System.out.println((a/b)+" "+(a%b)+" "+String.format("%1$4f",((double)a/b)));
  }
}