import java.util.*;
public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double a = sc.nextInt();
	double  b = sc.nextInt();
	double  d = a / b;
	double r = a % b;

	System.out.print((int)d+" "+(int)r+" ");
	System.out.printf("%f\n", d );
	
	}

} import java.util.*; util.* java public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double a = sc.nextInt();
	double  b = sc.nextInt();
	double  d = a / b;
	double r = a % b;

	System.out.print((int)d+" "+(int)r+" ");
	System.out.printf("%f\n", d );
	
	}

} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double a = sc.nextInt();
	double  b = sc.nextInt();
	double  d = a / b;
	double r = a % b;

	System.out.print((int)d+" "+(int)r+" ");
	System.out.printf("%f\n", d );
	
	} main {
	Scanner sc = new Scanner(System.in);
	double a = sc.nextInt();
	double  b = sc.nextInt();
	double  d = a / b;
	double r = a % b;

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

	System.out.print((int)d+" "+(int)r+" ");
	System.out.printf("%f\n", d );
	
	}

} public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double a = sc.nextInt();
	double  b = sc.nextInt();
	double  d = a / b;
	double r = a % b;

	System.out.print((int)d+" "+(int)r+" ");
	System.out.printf("%f\n", d );
	
	}

} Main
import java.util.*;
public class Main {
	public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	double a = sc.nextInt();
	double  b = sc.nextInt();
	double  d = a / b;
	double r = a % b;

	System.out.print((int)d+" "+(int)r+" ");
	System.out.printf("%f\n", d );
	
	}

}