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


}
