import java.util.*;
class A163{
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int r=sc.nextInt();
        double pi = 3.14;
        double cirf=2*pi*r;
        System.out.println(cirf);

    }
}