#include <bits/stdc++.h>
using namespace std;
constexpr long long MOD = 1000000007;
using ll = long long;
int main() {
ll r;
cin >> r;
cout << fixed << setprecision(10) << 2 * 3.1415926535 * r << endl;
}
