#include <iostream>
#include<cmath>
#include<algorithm>
using namespace std;

int n, m, k;



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


	cout << fixed << setprecision(4) <<  2.0 * 3.14159 * r << endl;
//	return 0;
	system("pause");
}