
import java.util.*;
import java.text.*;

class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
	  int a = s.nextInt();
	  int b = s.nextInt();
	  int d = a / b;
	  int r = a % b;
	  double f = (double)a / (double)b;
	  
	  DecimalFormat fm = new DecimalFormat("#.######");
      System.out.println(d+" "+r+" "+fm.format(f));
	 }
	} import java.util.*; util.* java import java.text.*; text.* java class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
	  int a = s.nextInt();
	  int b = s.nextInt();
	  int d = a / b;
	  int r = a % b;
	  double f = (double)a / (double)b;
	  
	  DecimalFormat fm = new DecimalFormat("#.######");
      System.out.println(d+" "+r+" "+fm.format(f));
	 }
	} Main public static void main(String[] args){
Scanner s = new Scanner(System.in);
	  int a = s.nextInt();
	  int b = s.nextInt();
	  int d = a / b;
	  int r = a % b;
	  double f = (double)a / (double)b;
	  
	  DecimalFormat fm = new DecimalFormat("#.######");
      System.out.println(d+" "+r+" "+fm.format(f));
	 } main {
Scanner s = new Scanner(System.in);
	  int a = s.nextInt();
	  int b = s.nextInt();
	  int d = a / b;
	  int r = a % b;
	  double f = (double)a / (double)b;
	  
	  DecimalFormat fm = new DecimalFormat("#.######");
      System.out.println(d+" "+r+" "+fm.format(f));
	 } Scanner s = new Scanner(System.in); s new Scanner(System.in) int a = s.nextInt(); a s.nextInt() s.nextInt s int b = s.nextInt(); b s.nextInt() s.nextInt s int d = a / b; d a / b a b int r = a % b; r a % b a b double f = (double)a / (double)b; f (double)a / (double)b (double)a (double)b DecimalFormat fm = new DecimalFormat("#.######"); fm new DecimalFormat("#.######") System.out.println(d+" "+r+" "+fm.format(f)) System.out.println System.out System System.out d+" "+r+" "+fm.format(f) " " r d+" "+r+" "+fm.format(f) d " " r " " fm.format(f) fm.format fm f String[] args args

import java.util.*;
import java.text.*;

class Main{
public static void main(String[] args){
Scanner s = new Scanner(System.in);
	  int a = s.nextInt();
	  int b = s.nextInt();
	  int d = a / b;
	  int r = a % b;
	  double f = (double)a / (double)b;
	  
	  DecimalFormat fm = new DecimalFormat("#.######");
      System.out.println(d+" "+r+" "+fm.format(f));
	 }
	}