#define _USE_MATH_DEFINES
#include <cmath>
#include<iostream>
#include<string>
#include<vector>
#include<algorithm>

using namespace std;

int main() {
	double r;
	cin >> r;
	cout << r * 2 * M_PI << endl;
}