#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < n; i++)
using namespace std;

int main() {
    double r, ans;
    cin >> r;
    ans = 2.0 * r * M_PI;
    cout << fixed << setprecision(10) << ans << endl;
}