let content = '';
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', buf => {
  content += buf;
});
process.stdin.on('end', () => {
  const r = parseFloat(content);
  const area = r * r * Math.PI;
  const c = r * 2 * Math.PI;
  console.log(area.toFixed(6), c.toFixed(6));
});
