public class CodeForces 
{
    public static void main(final String args[]) {
        final Scanner s = new Scanner(System.in);
        int r=s.nextInt();
        double ans=3.14159265;
        ans=ans*2.0;
        System.out.println(ans*r);
    }
}