import java.util.*;

class demo
{

	public static void main(String[] args) {
	Scanner s=new Scanner(System.in);
	int r=s.nextInt();
	double res;

	res=(double)22/7;
	res=(double)(res*2*r);
	System.out.println(res);
		
	}
}