#include<bits/stdc++.h>
//#define pi acos(-1)
using namespace std;
int main()
{
    //cout<<"bismillahhir rahmanir rahim"<<endl;
    double r, pi = acos(-1);
    cin>>r;
    cout<<2*pi*r<<endl;

    return 0;
}