package atcoder.abc163
import kotlin.math.*

fun main(args: Array<String>) {
    val r = readLine()!!.toDouble()
    val pi = kotlin.math.PI
    val round = 2.0 * r * pi
    println(round.toString())
}
