using System;
class Program
 {
        static void Main(string[] args)
        {
          	int a;
            a = int.Parse(Console.ReadLine);

            var ans = 2 * Math.PI * a;

            Console.WriteLine(ans);
        }
 }