        #include <bits/stdc++.h>
        using namespace std;
   #define int long long
const int MAX = 510000;
const int MOD =  1000000007;

     signed main(){
        int r;
        cin>>r;
        cout<<r*2*M_PI<<endl;



      }

        
