import java.util.*

public class Main() {
	public static void main(String[] args) {
    	Scanner scanner = new Scanner(System.in);
        double r= scanner.nextDouble();
        
        System.out.println(2*Math.PI*r);
    }
}