object Main{
    def main(args: Array[String]): Unit ={
        var in = scala.io.StdIn.readDouble()
        var a = in * in * 3.141592653D
        var c = (in + in) * 3.141592653D
        println(f"$a%.7f"  + " " + f"$c%.7f")
    }
}