import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner kbs = new Scanner(System.in);
		int r = kbs.nextInt();
		double s = 0;
		s = 2 * 3.14 * r;
		System.out.println(s);
	}
}