import java.util.*;

class Main{
  public static void main(String[] args) {
    Scanner reader= new Scanner(System.in);
    double r =reader.nextDouble();
    System.out.println(2*r*3.14159265);




  }
}