#include <iomanip>
#include <iostream>

using namespace std;

int main() {
    const double pi = 3.14159265358979323846264338327950288;

    int r;
    cin >> r;
    cout << setprecision(12) << fixed << 2 * pi * r << endl;
}
