import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = Integer.parseInt(x[0]);
    int b = Integer.parseInt(x[1]);
    int d = a/b;
    int r = a%b;
    double n = (double)a/b;
    String f = String.format("%.8f", n);
    System.out.println(d + " " + r + " " + f);
  }
} import java.util.Scanner; Scanner java.util class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = Integer.parseInt(x[0]);
    int b = Integer.parseInt(x[1]);
    int d = a/b;
    int r = a%b;
    double n = (double)a/b;
    String f = String.format("%.8f", n);
    System.out.println(d + " " + r + " " + f);
  }
} Main public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = Integer.parseInt(x[0]);
    int b = Integer.parseInt(x[1]);
    int d = a/b;
    int r = a%b;
    double n = (double)a/b;
    String f = String.format("%.8f", n);
    System.out.println(d + " " + r + " " + f);
  } main {
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = Integer.parseInt(x[0]);
    int b = Integer.parseInt(x[1]);
    int d = a/b;
    int r = a%b;
    double n = (double)a/b;
    String f = String.format("%.8f", n);
    System.out.println(d + " " + r + " " + f);
  } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String str = sc.nextLine(); str sc.nextLine() sc.nextLine sc String[] x = str.split(" "); x str.split(" ") str.split str " " int a = Integer.parseInt(x[0]); a Integer.parseInt(x[0]) Integer.parseInt Integer x[0] x 0 int b = Integer.parseInt(x[1]); b Integer.parseInt(x[1]) Integer.parseInt Integer x[1] x 1 int d = a/b; d a/b a b int r = a%b; r a%b a b double n = (double)a/b; n (double)a/b (double)a b String f = String.format("%.8f", n); f String.format("%.8f", n) String.format String "%.8f" n System.out.println(d + " " + r + " " + f) System.out.println System.out System System.out d + " " + r + " " + f " " r d + " " + r + " " + f d " " r " " f String[] args args
import java.util.Scanner;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String str = sc.nextLine();
    String[] x = str.split(" ");
    int a = Integer.parseInt(x[0]);
    int b = Integer.parseInt(x[1]);
    int d = a/b;
    int r = a%b;
    double n = (double)a/b;
    String f = String.format("%.8f", n);
    System.out.println(d + " " + r + " " + f);
  }
}
