import java.util.*;
public class Main
{
  public static void main(String args[])
  {
    Scanner in=new Scanner(System.in);
    int R=in.nextInt();
    double c=2*3.1415*R;
    System.out.println(c);
  }
}