#include<iostream>
#include<algorithm>
#include<vector>
#include<math.h>
int main(){
    int r;
    scanf("%d",&r);
    double A;
    const double PI  =3.141592653589793238463;
    A = (double)PI * 2 * r;
    printf("%.20f",A);
    return 0;
}