#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
const double PI=3.14159265358979323846;

int main(){

    int R;
    cin >> R;

    cout << 2*R*PI << endl;

    return 0;
}
