import java.io.PrintWriter
import kotlin.math.PI

fun main() {
    val pw = PrintWriter(System.out)

    val r = readInputLine().toDouble()

    pw.println(2.0 * PI * r)

    pw.flush()
}

fun readInputLine(): String {
    return readLine()!!
}
