import java.util.Scanner;

public class Main {
	void ab(){
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	}
	public static void main(String args[]){
		Main m = new Main();
		m.ab();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void ab(){
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	}
	public static void main(String args[]){
		Main m = new Main();
		m.ab();
	}
} Main void ab(){
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	} ab {
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	} int a a b b d d r; r double f; f Scanner s = new Scanner(System.in); s new Scanner(System.in) a = s.nextInt() a s.nextInt() s.nextInt s b = s.nextInt() b s.nextInt() s.nextInt s 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.println(d + " " + r + " " + String.format("%.9f", f)) System.out.println System.out System System.out d + " " + r + " " + String.format("%.9f", f) " " r d + " " + r + " " + String.format("%.9f", f) d " " r " " String.format("%.9f", f) String.format String "%.9f" f public static void main(String args[]){
		Main m = new Main();
		m.ab();
	} main {
		Main m = new Main();
		m.ab();
	} Main m = new Main(); m new Main() m.ab() m.ab m String args[] args public class Main {
	void ab(){
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	}
	public static void main(String args[]){
		Main m = new Main();
		m.ab();
	}
} public class Main {
	void ab(){
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	}
	public static void main(String args[]){
		Main m = new Main();
		m.ab();
	}
} Main
import java.util.Scanner;

public class Main {
	void ab(){
		int a,b,d,r;
		double f;
		Scanner s = new Scanner(System.in);
		a = s.nextInt();
		b = s.nextInt();
		d = a/b;
		r = a%b;
		f = (double)a/b;
		System.out.println(d + " " + r + " " + String.format("%.9f", f));
	}
	public static void main(String args[]){
		Main m = new Main();
		m.ab();
	}
}