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

#define endl '\n'

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);

    long double r; cin >> r;
    cout << fixed << setprecision(9) << r * 2 * acos(-1) << endl;
}