import java.util.Scanner;
public class Atcoder1
{
    void main()
    {
        Scanner sc=new Scanner (System.in);
        int r=sc.nextInt();
        double c=Math.PI*r;
        System.out.println(c);
    }
}