#include <iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<iomanip>

using namespace std;

int main()
{
    double r;
    cin >> r;
    cout << 3.141592653589793238*2 * r << endl;

    return 0;
}