using System;
using System.Linq;
using System.Collections.Generic;

using E = System.Linq.Enumerable;

public class Program
{
    public static void Main()
    {
        var r = int.Parse(Console.ReadLine());

        Console.WriteLine(2 * Math.PI * r);
    }
}
