import java.util.Scanner;

class Edata {

    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        int i = sc.nextInt();
        double c =Math.PI*2*i;
        System.out.println(c);
    }
}
