import java.util.*;
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        double tmp = (double)N;
        System.out.println(tmp *  3.14159265358979323846264338327950288);
    }
}
