#include<bits/stdc++.h>
using namespace std;
#define ll long long int
# define M_PIl          3.141592653589793238462643383279502884L
int main()
{
	ll n;
	cin>>n;
	cout<<fixed<<setprecision(20)<<(2*M_PIl*n)<<endl;
}