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

#define pi 3.14159

int main() {
    int r;
    cin >> r;
    double  x = (double)2 * pi * r;
    cout <<fixed << setprecision(3) << x << endl;
    return 0;
}
