import java.util.Scanner;

class Main {
	public static void main(String[] $){
		Scanner sc =new Scanner(System.in);
		int n = sc.nextInt();

		System.out.println(2 * n * Math.PI);

		sc.close();
	}
}

