#include <bits/stdc++.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;
}
