import java.util.Scanner;

class circle_pond
{
    public static void main(String artg[])
    {
        Scanner in=new Scanner(System.in);
        int r=in.nextInt();
        System.out.println(Math.PI*2*r);
    }
}
