#include<iostream>
#include<string>
#include<vector>
#include<numeric>
#include<set>
#include<algorithm>

#define PI 3.14159265358979323846

using namespace std;

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

    cout << 2 * R * PI << endl;
    return 0;
}