import java.util.Scanner;
import java.text.DecimalFormat;

class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int inta = sc.nextInt();
        int intb = sc.nextInt();
        if(inta<1 || 1e9<inta){
            System.exit(-1);
        }else if(intb<1 || 1e9<intb){
            System.exit(-1);
        }
        double doublea = inta;
        double doubleb = intb;
        DecimalFormat n = new DecimalFormat();
        System.out.println(inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb));
    }
} import java.util.Scanner; Scanner java.util import java.text.DecimalFormat; DecimalFormat java.text class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int inta = sc.nextInt();
        int intb = sc.nextInt();
        if(inta<1 || 1e9<inta){
            System.exit(-1);
        }else if(intb<1 || 1e9<intb){
            System.exit(-1);
        }
        double doublea = inta;
        double doubleb = intb;
        DecimalFormat n = new DecimalFormat();
        System.out.println(inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb));
    }
} Main public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int inta = sc.nextInt();
        int intb = sc.nextInt();
        if(inta<1 || 1e9<inta){
            System.exit(-1);
        }else if(intb<1 || 1e9<intb){
            System.exit(-1);
        }
        double doublea = inta;
        double doubleb = intb;
        DecimalFormat n = new DecimalFormat();
        System.out.println(inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb));
    } main {
        Scanner sc = new Scanner(System.in);
        int inta = sc.nextInt();
        int intb = sc.nextInt();
        if(inta<1 || 1e9<inta){
            System.exit(-1);
        }else if(intb<1 || 1e9<intb){
            System.exit(-1);
        }
        double doublea = inta;
        double doubleb = intb;
        DecimalFormat n = new DecimalFormat();
        System.out.println(inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb));
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int inta = sc.nextInt(); inta sc.nextInt() sc.nextInt sc int intb = sc.nextInt(); intb sc.nextInt() sc.nextInt sc if(inta<1 || 1e9<inta){
            System.exit(-1);
        }else if(intb<1 || 1e9<intb){
            System.exit(-1);
        } inta<1 || 1e9<inta inta<1 inta 1 1e9<inta 1e9 inta {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 if(intb<1 || 1e9<intb){
            System.exit(-1);
        } intb<1 || 1e9<intb intb<1 intb 1 1e9<intb 1e9 intb {
            System.exit(-1);
        } System.exit(-1) System.exit System -1 1 double doublea = inta; doublea inta double doubleb = intb; doubleb intb DecimalFormat n = new DecimalFormat(); n new DecimalFormat() System.out.println(inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb)) System.out.println System.out System System.out inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb) " " inta%intb inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb) inta/intb inta intb " " inta%intb inta intb " " String.format("%f", doublea/doubleb) String.format String "%f" doublea/doubleb doublea doubleb String[] args args
import java.util.Scanner;
import java.text.DecimalFormat;

class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int inta = sc.nextInt();
        int intb = sc.nextInt();
        if(inta<1 || 1e9<inta){
            System.exit(-1);
        }else if(intb<1 || 1e9<intb){
            System.exit(-1);
        }
        double doublea = inta;
        double doubleb = intb;
        DecimalFormat n = new DecimalFormat();
        System.out.println(inta/intb + " " + inta%intb + " " + String.format("%f", doublea/doubleb));
    }
}