#include <iostream>
#include <vector>
#include <utility>
#include <map>
#include <algorithm>
#include <queue>
#include <cmath>

using namespace std;

int main() {
	int r;
	cin >> r;
	cout << 2*r*3.14 << endl;
	return 0;
}