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

using i32 = int_fast32_t;
using i64 = int_fast64_t;

int main() {
    i32 r;
    cin >> r;
    cout << fixed << setprecision(15) << 2 * M_PI * r << endl;
}
