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