import java.util.Scanner;

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