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

using namespace std;

int main()
{
    int R;
    cin >> R;
    
    const double PI=3.141592653589;

    double ans = 2*PI*R;

    cout << ans << endl;

}