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

using namespace std;

int main() {
	double R, length;
	cin >> R;
	length = 2 * R * 3.1415926;

	cout << length << endl;
	
	return 0;
}