import java.util.*;
class Solution{
  	static Scanner scan = new Scanner(System.in);
	public static void main(String[] args) {
    	int R = scan.nextInt();
      	System.out.println(2 * 3.14 * R);
    }
}