#include <bits/stdc++.h>
using namespace std;
#define LL long int
#define ULL unsigned long int
#define MOD (long int)10e9 + 7

int main(){
    long double r;
    cin >> r;

    cout << fixed << setprecision(16) << r * 2 * M_PI << endl;

    return 0;
}