#include <iostream>
using  namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    double r,cir;
    double PI  =3.141592653589793238463;
    cin>>r;
    cir=2*PI*r;
    cout<<cir<<endl;
}