fun main(args: Array<String>) {
    val r = readLine()?.toDouble() ?: return
    println(String.format("%1$.6f %2$.6f", calcArea(r), calcCircumference(r)))
}

fun calcArea(r: Double) : Double {
    return r * r * Math.PI
}

fun calcCircumference(r: Double) : Double {
    return 2 * r * Math.PI
}
