#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pint = pair<ll, ll>;

int main(int argc, char **argv)
{
	ll R; cin >> R;
	std::cout << fixed << setprecision(10) << R*2*M_PI<< std::endl;
}

