#include <iostream>
#include<fstream>
#include<algorithm>
#include<vector>
#include<iomanip>
using namespace std;


int main(){
   
	double r; cin >> r;
	cout << fixed << setprecision(5) << 2 * 3.14159 * r;

}