import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner rv=new Scanner(System.in);
        int r;
        r=rv.nextInt();
        System.out.println(2*3.14*r);
    }
}