using System;

namespace Circle
{
    class Program
    {
        static void Main(string[] args)
        {
            var R = 0;
            R = int.Parse(Console.ReadLine());
            Console.WriteLine((double)R*Math.PI2.0d);

        }
    }
}