import java.util.*;

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int r = scan.nextInt();

		double l = 2.0 * (double)r * Math.PI;
 
		System.out.println(l);
	}
}