#include <iostream>

#include <iomanip>

using std::cin;
using std::cout;
using std::endl;

static double const PI = 3.141592;

int
main()
{
  int R;
  cin >> R;
  cout << std::fixed << PI * (R * 2) << endl;
  return 0;
}
