#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>

using namespace std;

const double PI = acos(-1.0);

int main()
{
	double R;
	cin >> R;

	cout << 2.0 * PI * R << endl;

	return 0;
}