
import java.util.Scanner;

public class AtCoder168 {

  
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int R = scanner.nextInt();
        double a = 2*Math.PI*R; 
        System.out.println(a);
    }
    
}
