import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		double l = s.nextDouble();
		System.out.println(l * 2 * 3.14);
		s.close();
	}
}
