import java.util.Scanner;
public class Main{
 public static void main(String[] args) {
   Scanner kbd = new Scanner(System.in);
  double n=kbd.nextDouble();
  double x=Math.PI;
  System.out.println(2*n*x);
}
}
