import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	}
	
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	}
	
} Main public static void main(String[] args) {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	} main {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	} int a a b b d d r; r double f; f Scanner scan = new Scanner(System.in); scan new Scanner(System.in) a= Integer.parseInt(scan.next()) a Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan b= Integer.parseInt(scan.next()) b Integer.parseInt(scan.next()) Integer.parseInt Integer scan.next() scan.next scan d=a/b d a/b a b r=a%b r a%b a b f=(double)a/(double)b f (double)a/(double)b (double)a (double)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) {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	}
	
} public class Main {
	public static void main(String[] args) {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	}
	
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
	int a,b,d,r;
	double f;
	Scanner scan = new Scanner(System.in);
	
	a= Integer.parseInt(scan.next());
	b= Integer.parseInt(scan.next());
	d=a/b;
	r=a%b;
	f=(double)a/(double)b;

	
	System.out.printf("%d %d %.5f",d,r,f);
	}
	
}