import java.io.*;
public class Main {
		
	public static void main(String[] args)throws IOException {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	}
} import java.io.*; io.* java public class Main {
		
	public static void main(String[] args)throws IOException {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	}
} Main public static void main(String[] args)throws IOException {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	} main {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	} BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String str=br.readLine(); str br.readLine() br.readLine br String[] num=str.split(" "); num str.split(" ") str.split str " " int a=Integer.parseInt(num[0]); a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 int b=Integer.parseInt(num[1]); b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 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.printf("%d %d %.5f",d,r,f) System.out.printf System.out System System.out "%d %d %.5f" d r f String[] args args public class Main {
		
	public static void main(String[] args)throws IOException {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	}
} public class Main {
		
	public static void main(String[] args)throws IOException {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	}
} Main
import java.io.*;
public class Main {
		
	public static void main(String[] args)throws IOException {
		
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		
		String[] num=str.split(" ");
		int a=Integer.parseInt(num[0]);
		int b=Integer.parseInt(num[1]);
		
		int d=(a/b);
		int r=(a%b);
		double f=(double)a/b;
		
		System.out.printf("%d %d %.5f",d,r,f);
	}
}