import java.util.Scanner;

public class Main {

	public static void main(final String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		double r = Math.PI * 2 * n;
		System.out.println(r);
	}
}
