import java.util.*;

public class MIan{
  public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		double R = sc.nextDouble();
		double x = Math.PI;
		double num = 0;
		num =R * x * 2;
		System.out.println(num);
	}
}