import java.util.Scanner
import scala.math

object Main {
  def main(args:Array[String]) = {
  val sc = new java.util.Scanner(System.in)
  val r:Int = sc.nextInt
  val pi:Double = math.Pi

  println(2.0 * r.toDouble * pi)
  
  } 
}