#include <iostream>
#include <iomanip>
#define PI 3.14159265359
using namespace std;
int main() {
    int R;
    cin >> R;
    double L;
    L = 2.0 * PI * R;
    cout << fixed << setprecision(15) << L << std::endl;
    return 0;
}
