import java.util.*;

class Main{
    public static void main(String args[]){
        Scanner S = new Scanner(System.in);
        int R = Integer.parseInt(S.next());
        System.out.println(2*R*Math.PI);
    }
}
