var input = function()
{
  return input= require('fs').readFileSync('/dev/stdin', 'utf8').split('').map(Number);
};

var out = function(x)
{
  console.log(x);
  return x;
}

var surface =function(x)
{
  return Math.pow(x[0],2) * Math.PI;
}

var length = function(x)
{
  return 2*x[0]*Math.PI;
}

var calc = function(x)
{
  var str = surface(x) +" " +  length(x);
  out(str);
  return str;
};

calc(input());