import java.util.*;
class Circle
{
    static public void main(String args[])
    {
        Scanner in = new Scanner(System.in);
        
        int r = in.nextInt();
        
        double d;
        
        d = 2*3.14*r;
        
        System.out.println(d);
    }
}