#include<iosrtream>
using namespace std;
#define pi 3.141592653589793238
int main(){
	
	double r;
	cin>>r;
	double ans = (2* pi * r);
	printf("%0.20lf \n", ans);
//	cout<< setprecision(20) <<ans<<endl;
}