import java.util.Scanner;


public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int y = sc.nextInt();
	sc.close();
	System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y);
}
} import java.util.Scanner; Scanner java.util public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int y = sc.nextInt();
	sc.close();
	System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y);
}
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int y = sc.nextInt();
	sc.close();
	System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y);
} main {
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int y = sc.nextInt();
	sc.close();
	System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y);
} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int x = sc.nextInt(); x sc.nextInt() sc.nextInt sc int y = sc.nextInt(); y sc.nextInt() sc.nextInt sc sc.close() sc.close sc System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y) System.out.printf System.out System System.out "%d %d %f\n" (int)x/y (int)x y x%y x y x/(double)y x (double)y String[] args args public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int y = sc.nextInt();
	sc.close();
	System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y);
}
} public class Main{
public static void main(String[] args){
	Scanner sc = new Scanner(System.in);
	int x = sc.nextInt();
	int y = sc.nextInt();
	sc.close();
	System.out.printf("%d %d %f\n",(int)x/y, x%y, x/(double)y);
}
} Main
import java.util.Scanner;


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