#include <bits/stdc++.h>

using namespace std;

int main()
{
    int r;
    const double pi = 3.14159265359;

    cin >> r;

    cout << fixed << setprecision(9) << 2 * pi * r << "\n";

    return 0;
}