import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        int div = a / b;
        int rem = a % b;
        double fp = (double)a / (double)b;
        
        String after = String.format("%.16f", fp);
        System.out.println(div + " " + rem + " " + after); 
    }
} import java.util.Scanner; Scanner java.util class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        int div = a / b;
        int rem = a % b;
        double fp = (double)a / (double)b;
        
        String after = String.format("%.16f", fp);
        System.out.println(div + " " + rem + " " + after); 
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        int div = a / b;
        int rem = a % b;
        double fp = (double)a / (double)b;
        
        String after = String.format("%.16f", fp);
        System.out.println(div + " " + rem + " " + after); 
    } main {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        int div = a / b;
        int rem = a % b;
        double fp = (double)a / (double)b;
        
        String after = String.format("%.16f", fp);
        System.out.println(div + " " + rem + " " + after); 
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner int b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner int div = a / b; div a / b a b int rem = a % b; rem a % b a b double fp = (double)a / (double)b; fp (double)a / (double)b (double)a (double)b String after = String.format("%.16f", fp); after String.format("%.16f", fp) String.format String "%.16f" fp System.out.println(div + " " + rem + " " + after) System.out.println System.out System System.out div + " " + rem + " " + after " " rem div + " " + rem + " " + after div " " rem " " after String[] args args
import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        
        int div = a / b;
        int rem = a % b;
        double fp = (double)a / (double)b;
        
        String after = String.format("%.16f", fp);
        System.out.println(div + " " + rem + " " + after); 
    }
}