import java.util.Scanner;
public class tmp {
public static void main(String[] args) {
	Scanner scanner = new Scanner(System.in);
	int n = scanner.nextInt();
  	double p = 3.1415926535897932384626433832795;
  	System.out.println(2*n*p);
	scanner.close();}}