import java.util.Scanner;

public class Main {
	public static void main(String[] arg) {
		Scanner scan = new Scanner(System.in);
		int n  = scan.nextInt();
		double a = 3.14159265358979;
		System.out.println(n * a);
	}
}
