import java.util.*;

class Main{
	static int a;
	static int b;
	static int c;
	static int d;
	static int e;
	static int p;
	static double f;
	static int g;
	static int h;
	static int i;
	static int j;
	static int k;
	static int l;
	static int m;
	static int o;
	static int q;
	static int r;
	static int s;
	static int t;
	static int u;
	private static Scanner sc;
	public static void main(String[]agrs){
		sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		d=a/b;
		r=a%b;
		f=1.0*a/b;
		System.out.printf("%d %d %f",d,r,f);
	}
} import java.util.*; util.* java class Main{
	static int a;
	static int b;
	static int c;
	static int d;
	static int e;
	static int p;
	static double f;
	static int g;
	static int h;
	static int i;
	static int j;
	static int k;
	static int l;
	static int m;
	static int o;
	static int q;
	static int r;
	static int s;
	static int t;
	static int u;
	private static Scanner sc;
	public static void main(String[]agrs){
		sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		d=a/b;
		r=a%b;
		f=1.0*a/b;
		System.out.printf("%d %d %f",d,r,f);
	}
} Main static int a; a static int b; b static int c; c static int d; d static int e; e static int p; p static double f; f static int g; g static int h; h static int i; i static int j; j static int k; k static int l; l static int m; m static int o; o static int q; q static int r; r static int s; s static int t; t static int u; u private static Scanner sc; sc public static void main(String[]agrs){
		sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		d=a/b;
		r=a%b;
		f=1.0*a/b;
		System.out.printf("%d %d %f",d,r,f);
	} main {
		sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		d=a/b;
		r=a%b;
		f=1.0*a/b;
		System.out.printf("%d %d %f",d,r,f);
	} sc=new Scanner(System.in) sc new Scanner(System.in) a=sc.nextInt() a sc.nextInt() sc.nextInt sc b=sc.nextInt() b sc.nextInt() sc.nextInt sc d=a/b d a/b a b r=a%b r a%b a b f=1.0*a/b f 1.0*a/b 1.0*a 1.0 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 String[]agrs agrs
import java.util.*;

class Main{
	static int a;
	static int b;
	static int c;
	static int d;
	static int e;
	static int p;
	static double f;
	static int g;
	static int h;
	static int i;
	static int j;
	static int k;
	static int l;
	static int m;
	static int o;
	static int q;
	static int r;
	static int s;
	static int t;
	static int u;
	private static Scanner sc;
	public static void main(String[]agrs){
		sc=new Scanner(System.in);
		a=sc.nextInt();
		b=sc.nextInt();
		d=a/b;
		r=a%b;
		f=1.0*a/b;
		System.out.printf("%d %d %f",d,r,f);
	}
}