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

#include<math.h>
typedef long long ll;
using namespace std;

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

	cout << (2 * M_PI * r);
	return 0;
}