#include <iostream>
#include <cmath>

using namespace std;

const long MOD = 1000000007;
typedef pair<int, int> P;

int main(){
    int R;
    cin >> R;

    cout << 2.0*R*acos(-1) << endl;

    return 0;
}
