#include <bits/stdc++.h>
using namespace std;

typedef long long ll;

int main(){
    int r;
    cin>>r;
    double ans = r*2*M_PI;

    cout<<setprecision(6)<<fixed;
    cout<<ans<<endl;
    return 0;
}