#include <iostream>
#include <cmath>
#include <cstdio>
#include <iomanip>
using namespace std;

int main(){
	int R;
	cin>> R;
	double ans = 2 * M_PI * R;
       	cout << setprecision(6) << ans << endl;	
}