import java.util.Scanner;

public class TaskA {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        double r=scan.nextDouble();
        System.out.println(Math.PI*r*2);
    }
}
