import java.util.Scanner;


public class Q1 {
     
	public static void main(String[] args) {
	    Scanner scan = new Scanner(System.in);
    int radius = scan.nextInt();
     System.out.println(2*Math.PI*radius);
	}
}
