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