import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

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

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

		System.out.print(d +" "+r+" ");
		System.out.println(String.format("%.5f",f));
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

		System.out.print(d +" "+r+" ");
		System.out.println(String.format("%.5f",f));
	} main {
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

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

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

		System.out.print(d +" "+r+" ");
		System.out.println(String.format("%.5f",f));
	}
} public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

		System.out.print(d +" "+r+" ");
		System.out.println(String.format("%.5f",f));
	}
} Main
import java.util.Scanner;

public class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());

		int d = a/b ;
		int r = a%b ;

		double c = (double) a;
		double e = (double) b;

		double f = c / e;

		System.out.print(d +" "+r+" ");
		System.out.println(String.format("%.5f",f));
	}
}