/*AOJ-ITP-4-1*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
 
public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.math.BigDecimal; BigDecimal java.math public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    }
} Main public static void main(String[] args) throws NumberFormatException, IOException {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    } main {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String st[] = br.readLine().split(" "); st br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int count = 0; count 0 double a = Integer.parseInt(st[0]); a Integer.parseInt(st[0]) Integer.parseInt Integer st[0] st 0 double b = Integer.parseInt(st[1]); b Integer.parseInt(st[1]) Integer.parseInt Integer st[1] st 1 if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);} !(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9) (a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9) a <= 10e9 a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9 a >= 1 a 1 b >= 1 b 1 a <= 10e9 a 10e9 b <= 10e9 b 10e9 {System.exit(1);} System.exit(1) System.exit System 1 int d = (int)(a / b); d (int)(a / b) a b int r = (int)(a % b); r (int)(a % b) a b double f = (a / b); f (a / b) a b BigDecimal x = new BigDecimal(f); x new BigDecimal(f) x = x.setScale(5, BigDecimal.ROUND_HALF_UP) x x.setScale(5, BigDecimal.ROUND_HALF_UP) x.setScale x 5 BigDecimal.ROUND_HALF_UP BigDecimal BigDecimal.ROUND_HALF_UP System.out.print(d + " " + r + " " ) System.out.print System.out System System.out d + " " + r + " " r d + " " + r + " " d " " r " " System.out.printf("%.5f",x) System.out.printf System.out System System.out "%.5f" x System.out.println() System.out.println System.out System System.out String[] args args public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    }
} public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    }
} Main
/*AOJ-ITP-4-1*/

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.math.BigDecimal;
 
public class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
 
       BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String st[] = br.readLine().split(" ");
        int count = 0;
        double a = Integer.parseInt(st[0]);
        double b = Integer.parseInt(st[1]);
        
        if(!(a >= 1 && b >= 1 && a <= 10e9 && b <= 10e9)){System.exit(1);}
        
        int d = (int)(a / b);
        int r = (int)(a % b);
        double f = (a / b);
        BigDecimal x = new BigDecimal(f);
        x = x.setScale(5, BigDecimal.ROUND_HALF_UP);
        System.out.print(d + " " + r + " " );
        System.out.printf("%.5f",x);
        System.out.println();
    }
}