import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner scanner = new Scanner(System.in);
        long n = scanner.nextLong();
        long res = (long) (n * 2 * Math.PI);
        System.out.println(res);

    }
}