#include<bits/stdc++.h>
#define ld long double
using namespace std;
#define PI 3.1416

int main(){
    ld R;
    cin >> R;
    R *= (ld)2.0*(ld)3.1416;
    cout << setprecision(12) << R << "\n";
    return 0;
}
