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