import java.util.Scanner;

public class ABC163A {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner stdIn = new Scanner(System.in);
		int R = stdIn.nextInt();
		System.out.println((double)R * 2 * Math.PI);
	}
}