#include<bits/stdc++.h>                                                                                                              
using namespace std;

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

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