#include <iostream.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define PI 3.14159265359
using namespace std;
using ll = long long;
using P = pair<int,string>;

int main(){
    double r; cin >> r;
    cout << 2*PI*r << "\n";
}