import scala.io.StdIn._
import Math._
object Main {
  def main(args: Array[String]) {
    val r:Float = readFloat
    val s:Float = (PI * pow(r, 2)).toFloat
    val l = (2 * PI * r).toFloat
    println("%s %f".format(s, l))
  }

}