#include <bits/stdc++.h>

using namespace std;

#define ll long long

int main() {

	ios::sync_with_stdio(false);
	cin.tie(0);

	double r;
	cin >> r;
	double area = M_PI * 2 * r;
	cout << area << "\n";

	return 0;
}
