object Main{
    def main(args: Array[String]): Unit ={
        var in = scala.io.StdIn.readLine().split(" ").map(_.toInt)
        var a = in(0) * in(0) * 3.1415926D
        var c = (in(0) + in(0)) * 3.1415926D
        println(a  + " " + c)
    }
}