import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int R=scan.nextInt();
		double c=2.0*(double)R*Math.PI;
		System.out.println(c);

	}

}
