import java.util.Scanner;

public class Main {
	
	public static void main(String[] args)
	{
		Scanner s=new Scanner(System.in);
		
		double r=s.nextDouble();
		
		System.out.println(2*3.141592653589793238*r);
		
	}
	
}
