import java.util.Scanner;

public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

    		System.out.print((int)d);
    		System.out.print(" "+(int)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);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

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

    		}
    		} Main public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

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

    		} main {
    	Scanner sc = new Scanner(System.in);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

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

    		} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) double a=(double)sc.nextInt(); a (double)sc.nextInt() sc.nextInt sc double b=(double)sc.nextInt(); b (double)sc.nextInt() sc.nextInt sc double d=a/b; d a/b a b double r=a%b; r a%b a b double f=a/b; f a/b a b System.out.print((int)d) System.out.print System.out System System.out (int)d System.out.print(" "+(int)r+" ") System.out.print System.out System System.out " "+(int)r+" " " "+(int)r+" " " " (int)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);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

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

    		}
    		} public class Main{
    public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

    		System.out.print((int)d);
    		System.out.print(" "+(int)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);

    		double a=(double)sc.nextInt();
    		double b=(double)sc.nextInt();

    		double d=a/b;
    		double r=a%b;
    		double f=a/b;

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

    		}
    		}
    		
