#include<iostream>
#include<cstdio>
#include<string>
#include<cmath>

using namespace std;

int main()
{
    double r,s;
    double pi=3.141;
    cin>>r;
    s=2*pi*r;
    cout<<s<<endl;
    //system("pause");
    return 0;
}