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