import java.util.Scanner;

public class abc163a {
    public static void main(String[] args){
        Scanner s=new Scanner(System.in);
        int r=s.nextInt();
        System.out.println(2*r*Math.PI);
    }
}