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

#define int long long

const double pi = 6.28318530717958623200/2;

signed main(){
	int r;
	cin>>r;
	cout.setf(ios::fixed);
	cout<<setprecision(10)<<2*pi*r<<endl;
}
