#include <bits/stdc++.h>
#define endl '\n'
using namespace std;
typedef long long ll;

int main()
{
    double r, ans;
    cin>>r;
    ans=2*3.1416*r;
    cout<<setprecision(3)<<fixed;
    cout<<ans;
    return 0;
}
