process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function (chunk)
{
var x = chunk.split.map(Number);
var r = Number(x);
 Circle = r * r * Math.PI.toFixed(6);
 area = 2 * r * Math.PI.toFixed(6);
 

console.log(Circle+' '+area);

});