#include <iostream>
#include <string>
#include <algorithm>
#define _USE_MATH_DEFINES
#include <math.h>
using namespace std;

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

	cout << 2 * r * M_PI << endl;

	return 0;
}