#include <iostream>
#include <iomanip>
#include <math.h>

const double PI  =3.141592653589793238463;

using namespace std;

int main(){
    double n;
    cin >> n;

    cout << fixed << setprecision(12) << 2*PI*n << endl;

    return 0;
}