import java.util.*;
class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt();
        long b = sc.nextInt();
        long a00000 = a * 100000;
        long c = a00000 / b;
        long d = c / 100000;
        long f = c % 100000;
        String sf = ""+f;
        while(sf.length() < 5) sf = "0" + sf;
        //System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));
        System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    }
} import java.util.*; util.* java class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt();
        long b = sc.nextInt();
        long a00000 = a * 100000;
        long c = a00000 / b;
        long d = c / 100000;
        long f = c % 100000;
        String sf = ""+f;
        while(sf.length() < 5) sf = "0" + sf;
        //System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));
        System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    }
} Main public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt();
        long b = sc.nextInt();
        long a00000 = a * 100000;
        long c = a00000 / b;
        long d = c / 100000;
        long f = c % 100000;
        String sf = ""+f;
        while(sf.length() < 5) sf = "0" + sf;
        //System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));
        System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    } main {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt();
        long b = sc.nextInt();
        long a00000 = a * 100000;
        long c = a00000 / b;
        long d = c / 100000;
        long f = c % 100000;
        String sf = ""+f;
        while(sf.length() < 5) sf = "0" + sf;
        //System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));
        System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) long a = sc.nextInt(); a sc.nextInt() sc.nextInt sc long b = sc.nextInt(); b sc.nextInt() sc.nextInt sc long a00000 = a * 100000; a00000 a * 100000 a 100000 long c = a00000 / b; c a00000 / b a00000 b long d = c / 100000; d c / 100000 c 100000 long f = c % 100000; f c % 100000 c 100000 String sf = ""+f; sf ""+f "" f while(sf.length() < 5) sf = "0" + sf; sf.length() < 5 sf.length() sf.length sf 5 sf = "0" + sf sf "0" + sf "0" sf System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf) System.out.println System.out System System.out "" + (a/b) + " " + (a%b) + " " + d + "." + sf "." d " " (a%b) " " "" + (a/b) + " " + (a%b) + " " + d + "." + sf "" (a/b) a b " " (a%b) a b " " d "." sf String[]args args
import java.util.*;
class Main {
    public static void main(String[]args)throws Exception {
        Scanner sc = new Scanner(System.in);
        long a = sc.nextInt();
        long b = sc.nextInt();
        long a00000 = a * 100000;
        long c = a00000 / b;
        long d = c / 100000;
        long f = c % 100000;
        String sf = ""+f;
        while(sf.length() < 5) sf = "0" + sf;
        //System.out.println("" + (a/b) + " " + (a%b) + " " + (a/(double)b));
        System.out.println("" + (a/b) + " " + (a%b) + " " + d + "." + sf);
    }
}