using System;

class Program {
    private static int Main() {
        var input = Console.ReadLine();
        var values = input.Split( ' ' );

        int a = int.Parse( values[ 0 ] );
        int b = int.Parse( values[ 1 ] );

        var d = a / b;
        var r = a % b;
        var f = (double)a / b;

        var output = string.Format( "{0} {1} {2}", d, r, f );
        Console.WriteLine( output );

        return 0;
    }
}