#include <iostream>
#include <math.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)
int main(void){
    double R;
    cin >> R;
    cout << 2 * 3.14159265359 * R << endl;
    return 0;
}
