#include <iostream>
#include <vector>
#include <math.h>
using namespace std;
void Yes(bool cnd){
    if(cnd)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}
int main(){
    double r;
    cin>>r;
    cout<<r*2*M_PI<<endl;
}