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