import java.util.Scanner;
public class Main {
   
    public static void main(String[] args) { 
		Scanner sc = new Scanner(System.in);
double R=sc.nextDouble();
        System.out.printf("%.2f",2*3.14159*R);
    } 
}