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

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

    double ans = 2 * r * pi;
    
    cout << fixed << setprecision(11) << ans << endl;

    return 0;

}