#define _USE_MATH_DEFINES
#include<iostream>
#include<iomanip>
#include<cmath>

using namespace std;

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

    cout << fixed << setprecision(15) << 2*num*M_PI << endl;
    return 0;
}