#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
  cout<<setprecision(6);
  cout<<fixed;
	double pi=3.141592653589793238.;
	double r; cin>>r;
	double val=(double)pi*2*r;
	cout<<val;
	
}