import java.util.Scanner;
public class scrap1{


    public static void main(String[] args) {


        Scanner reader = new Scanner(System.in);

        int a = reader.nextInt();

            System.out.println(2*Math.PI*a);




    }

}
