import java.util.Scanner;
public class scratch {
    public static void main(String args[]){
        int radius;
        double circumference;
        Scanner sc = new Scanner(System.in);

        radius = sc.nextInt();
        circumference = Math.PI*2*radius;
        System.out.println(circumference);
    }
}