#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long
int main(){
    double a;
    cin >> a;
    cout << fixed << setprecision(6)<< a*2*3.141592653589 << endl;
}