import java.util.*;

/*
問題文

*/

public class Main {
    public static void main(String[] args){

        Scanner sc = new Scanner(System.in);
        double s = sc.nextInt();

        System.out.println(s * Math.PI);
    }
}