#include<bits/stdc++.h>
using namespace std;
#define test while(t--)
#define pb push_back

int main()
{
    int r;
    cin>>r;
    double a=3.141592653589793*2*r;
    cout<<fixed<<setprecision(9)<<a;
}