import java.util.*;

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