#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define mod 1000000007

int main() {

	int r;
	cin >> r;
	cout << setprecision(14) << 2.0 * 3.141592653589793238 * (double)r;

	return 0;
}
