#include<iostream>
#include<sstream>
#include<algorithm>
#include<vector>
#include<string>

using namespace std;
typedef long long ll;

int main(){
	double R;
	cin>>R;
	double pi = 3.14;
	cout<<(double)2 *pi * R<<endl;

	return 0;
}
