import java.util.Scanner;

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

		
		System.out.println(scan.nextDouble() * Math.PI * 2.0000000);
		
		
	}
}

