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

const int N=2e5;

int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    double r; cin>>r;
    cout<<fixed<<setprecision(6)<<2*3.14159*r<<endl;
    return 0;
}
