function Main(input) {
    input.trim().split("\n").forEach(line => {
        var nums = line.split(" ").map(i => parseInt(i));
        var a = nums[0];
        var b = nums[1];
        var x = nums[2];
        var tan;
        if (a * a * b / 2 === x) {
            tan = b / a;
        } else if (a * a * b / 2 < x) {
            tan = a * a / 2 / (a * b - x / a)
        } else {
            tan = 2 * x / a / b / b
        }

        console.log(tan, (360 + 90 - Math.atan(tan) * 180 / Math.PI) % 360);
    });
}

process.stdin.resume();
process.stdin.setEncoding("utf8");
var globalInput = '';
process.stdin.on('data', function(chunk) {
    globalInput += chunk;
})
process.stdin.on('end', function() {
    Main(globalInput)
})

// Main(require("fs").readFileSync("/dev/stdin", "utf8"));