#include <iostream>
#include <vector>
#include <algorithm>
#include <functional>
#include <cmath>
#include <numeric>
using namespace std;
 
int main() {
	int m;
	cin >> m;
 
	cout << 2*m*3.1415926 << endl;
 
	return 0;