/**
  * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_4_B
  * ????????¢?????¨?????¨
  * ?????? r ???????????¢?????¨?????¨?????????????±???????????????°?????????????????????????????????
  */
object Main {
  def main(args: Array[String]): Unit = {
    val r = io.StdIn.readDouble()
    val s = math.Pi * math.pow(r, 2)
    val l = 2 * math.Pi * r
    println(f"$s%.6f $l%.6f")
  }
}