import Foundation
let main: () = {
    let R = nextDouble()
    let ans = Double.pi * 2.0 * R
    print(ans)
}()
@inlinable func next() -> String { readLine()! }
@inlinable func nextInt() -> Int { Int(next())! }
@inlinable func nextDouble() -> Double { Double(next())! }