import java.util.Scanner;

class main{
  public static void main(String[] args){
    
    Scanner scanner = new Scanner(System.in);
    int R = scanner.nextInt();
    double X = 2*3.14159265*R;
    System.out.println(X);
  }
}
