var x = require('fs').readFileSync('/dev/stdin', 'utf8');

var r = x.split(" ").map(Number);

var area = (Math.PI * r * r).toFixed(5);

var circum = (2 * Math.PI * r).toFixed(5);

console.log(area + " " + circum);

