public class CirclePond {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int r = scanner.nextInt();
		
		int pi = 314159;
		
		System.out.println((double)(2*r*pi) / 100000);
	} 

}