import java.util.Scanner;

public class Test {

	public static void main(String[] args) {
		// TODO 自动生成的方法存根
		float r,c;
		Scanner in = new Scanner (System.in);
		r = in.nextFloat();
		c =  (float)(2*Math.PI*r);
		System.out.println(c);
	}

}
