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