import java.util.Scanner;

/**
 * Created by khrom on 2017/06/14.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    }
} import java.util.Scanner; Scanner java.util public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    }
} Main public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    } main {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) double a = scanner.nextDouble(); a scanner.nextDouble() scanner.nextDouble scanner double b = scanner.nextDouble(); b scanner.nextDouble() scanner.nextDouble scanner System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b) System.out.printf System.out System System.out "%d %d %.5f" (int) Math.floor(a / b) Math.floor Math a / b a b (int) (a % b) a b a / b a b String[] args args public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    }
} public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    }
} Main
import java.util.Scanner;

/**
 * Created by khrom on 2017/06/14.
 */
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double a = scanner.nextDouble();
        double b = scanner.nextDouble();
        System.out.printf("%d %d %.5f", (int) Math.floor(a / b), (int) (a % b), a / b);
    }
}