#include <iostream>
#include <cmath>
#include <utility>

using namespace std;

typedef pair<int,int> pii;
typedef long long ll;
#define mp make_pair
#define x first
#define y second

int main () {
	double r;
	cin>>r;
	cout<<2*r*acos(-1);



return 0;
}

