#include<iostream>
#include<cmath>
#define cs ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef long double ld;

using namespace std;

int main(){
    cs
    ld x;
    cin>>x;
    cout<<fixed<<setprecision(12)<<2*x*acos(-1);
}