import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);		
		int R = a.nextInt();
		double R2 = (R * 2) * 3.14;
		System.out.println(R2);
	}
}