#include <iostream>
#include <cmath>

using namespace std;

double const PI = acos(-1);

int r;

int main() {
	// freopen("input.txt", "r", stdin);
	// freopen("output.txt", "w", stdout);

	cin >> r;

	cout << setprecision(10) << 2 * PI * r << endl;
}
