#include <iostream>
using namespace std;
#define pi 3.14159265358979323846


int main(){
  ios_base::sync_with_stdio(false);
  int n;
  cin>>n;
  double ans = 2*pi*n;
  cout<<setprecision(15);
  cout<<fixed;
  cout<<ans<<endl;
  

}