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

int main(){
  int R;
  cin >> R;
  
  const double pi = acos(-1.0)
    
  double answer = 2 * R * pi;
  
  cout << setprecision(20) << fixed << answer << endl;
}
