import java.io.*;

class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		String buf;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} catch(Exception e){
		}
		System.out.print("\n");
	}
}
			 import java.io.*; io.* java class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		String buf;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} catch(Exception e){
		}
		System.out.print("\n");
	}
} Main public static void main(String[] args){
		int a, b, d, r;
		double f;
		String buf;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} catch(Exception e){
		}
		System.out.print("\n");
	} main {
		int a, b, d, r;
		double f;
		String buf;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} catch(Exception e){
		}
		System.out.print("\n");
	} int a a b b d d r; r double f; f String buf; buf try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} catch(Exception e){
		} catch(Exception e){
		} Exception e {
		} {
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) buf = br.readLine() buf br.readLine() br.readLine br String[] line = buf.split(" "); line buf.split(" ") buf.split buf " " a = Integer.parseInt(line[0]) a Integer.parseInt(line[0]) Integer.parseInt Integer line[0] line 0 b = Integer.parseInt(line[1]) b Integer.parseInt(line[1]) Integer.parseInt Integer line[1] line 1 d = a/b d a/b a b r = a % b r a % b a b f = (double)a/b f (double)a/b (double)a b System.out.printf("%d %d %f", d, r, f) System.out.printf System.out System System.out "%d %d %f" d r f System.out.print("\n") System.out.print System.out System System.out "\n" String[] args args
import java.io.*;

class Main {
	public static void main(String[] args){
		int a, b, d, r;
		double f;
		String buf;
		try{
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			buf = br.readLine();
			
			String[] line = buf.split(" ");
			
			a = Integer.parseInt(line[0]);
			b = Integer.parseInt(line[1]);
			
			d = a/b;
			r = a % b;
			f = (double)a/b;
			
			System.out.printf("%d %d %f", d, r, f);
		} catch(Exception e){
		}
		System.out.print("\n");
	}
}
			