using System;
using System.Collections.Generic;

namespace atcoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string R1 = Console.ReadLine();
            long R = long.Parse(R1);
            Console.WriteLine(2 * 3.14 * R);
           
        }
    }
}