import java.util.Scanner;

class Main{
  public static void main(String args[]){
    Scanner scan;
    int R ;
    
    scan = new Scanner(System.in);
    R = scan.nextInt();
    
    System.out.println(2*R*3.14);
  }
}
