function Main(input) {
    input = input.split("\n");
    for (i=0; i < input.length-1; i++) {
        var r = input[i]
        var m = Math.floor(r * r * Math.PI * Math.pow(10, 6)) / Math.pow(10, 6)
        var e = Math.floor(2 * r * Math.PI * Math.pow(10, 6)) / Math.pow(10, 6)
        console.log(m, e)
    }
}

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