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