import java.math.*;
import java.util.Scanner;

public class Main1{
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);

        double R = scanner.nextInt();

        System.out.println(R * 2 * Math.PI);
    }
}