object Main extends App{
  import scala.io.StdIn.readLine
  val r = readLine().toDouble
  def square(r:Double):Double=r*r*Math.PI
  def circ(r:Double):Double=2*r*Math.PI
  println(square(r)+" "+circ(r))
}