import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	}
} import java.util.*; util.* java public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	}
} Main public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	} main {
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) String[] s = sc.nextLine().split(" "); s sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " int in[] = new int[s.length]; in new int[s.length] s.length s s.length for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		} int i=0; int i=0; i 0 i<s.length i s.length s s.length i++ i++ i {
			in[i] = Integer.parseInt(s[i]);
		} {
			in[i] = Integer.parseInt(s[i]);
		} in[i] = Integer.parseInt(s[i]) in[i] in i Integer.parseInt(s[i]) Integer.parseInt Integer s[i] s i System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1])) System.out.println System.out System System.out in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]) " " in[0]%in[1] in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]) in[0]/in[1] in[0] in 0 in[1] in 1 " " in[0]%in[1] in[0] in 0 in[1] in 1 " " String.format("%.5f",(double)in[0]/in[1]) String.format String "%.5f" (double)in[0]/in[1] (double)in[0] in 0 in[1] in 1 String[] args args public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	}
} public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	}
} Main
import java.util.*;
public class Main {
	public static void main(String[] args) throws Exception{
		Scanner sc = new Scanner(System.in);
		String[] s = sc.nextLine().split(" ");
		int in[] = new int[s.length];
		for(int i=0;i<s.length;i++){
			in[i] = Integer.parseInt(s[i]);
		}
		System.out.println(in[0]/in[1]+" "+in[0]%in[1]+" "+String.format("%.5f",(double)in[0]/in[1]));
	}
}