import java.util.Scanner;
class AtCoder {
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        int r = in.nextInt();
        double ans;
        ans = 2 * Math.PI * r;
        System.out.println(ans);
    }
}