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

int main() {
    double r; cin >> r;
    double ans = 2.0*r*3.141592;
    cout << ans << endl;
}
