#include<iostream>
#include<iomanip>

using namespace std;
static const double Pi = 3.141592;

int main(){
    double r;
    cin >> r;
    cout << fixed << setprecision(4) << 2 * Pi * r << endl;
    return 0;
}