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

#define ll long long int
 
int main() {
    double n, pi = 3.1415926535897932;
    cin >> n;
    double ans = 2 * (double)(pi) * (double)(n);
    cout << fixed << setprecision(15) << ans << endl;
}