import java.util.Scanner;

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