import java.util.*;
class A163{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int r=sc.nextInt();
        double pi = 3.141592653589793238;
        double cirf=2*pi*r;
        System.out.println(cirf);

    }
}