import java.util.*;

public class AtCoder163 {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        int q = s.nextInt();
        double ans = 2 * 3.14159 * q;
        System.out.println(ans);
    }
}