#include <string>
#include <iomanip>

using namespace std;

int main(){
  double N;
  cin >> N;

  const double pi = 3.14159265358979323846;

  double ans;
  ans = 2*pi*N;

  cout << setprecision(15) << ans << endl;

}