package test;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;
import java.lang.Math;

public class Main {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        double r=sc.nextDouble();
        System.out.println(r*Math.PI*2);

    }
}
