// for some reason i cant see problem stement

#include <bits/stdc++.h>
using namespace std;

double x,y,z;

int main() {
	cin >> x;
	cout << 2*3.141592653589793238462643383279502884197169399*x << "\n";
	return 0;
}