import java.util.*;
public class Main {

    public static void main(String[] args) {
        Scanner  yomi = new Scanner(System.in);
        double n = yomi.nextDouble();
        System.out.println(n*2*3.1415);

    }
}