using System;

class Program {
    static void Main (string[] args) {
        var inp = Console.ReadLine().Split(' ');
        int n = int.Parse(inp[0]);

		float circle = n * 2 * Math.PI; 
      
        Console.WriteLine(circle.ToString());
    }
}