var input = require('fs').readFileSync('/dev/stdin', 'utf8').split("\n").map(Number);
console.log(function(r) {
  return [(Math.PI * Math.pow(r, 2)).toFixed(6), (2 * Math.PI * r).toFixed(6)];
} (input[0]).join(' '));