import java.util.Scanner;

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