import java.lang.Math;
import java.util.*;

class Main{
	public static void main(String args[]){
    	Scanner sc = new Scanner(System.in);
      	double i = sc.nextInt();
      	System.out.println(Math.round(i*2*Math.PI*100)/100);
    
    
    }


}
          