import Foundation

private func readInt() -> [Int]{
    return readLine()!.split(separator: " ").map{Int($0)!}
}

func mainA() {
    let R = Double(readLine()!)!
    
    print(2.0 * R * 3.14159)
}

mainA()
