#define _LIBCPP_DEBUG 0
#include <bits/stdc++.h>
using namespace std;
const double PI=3.14159265358979323846;
int main()
{
    double r;
    cin >> r;
    cout << (double)2.0 * r * PI << endl;
    return 0;
}