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

var r = Number(input);

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

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

console.log(s + ' ' + circumference);