#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll

signed main()
{
	int r;
	cin>>r;
	double ans=1.0*r*2*3.14159265358979323846;
	
	cout<<fixed<<setprecision(20)<<ans<< endl;
	return 0;
}