#include <bits/stdc++.h>
using namespace std;
int main() {
  double pi = 3.141592653589793;
  double r;
  cin >> r;
  r = 2 * r;
  cout.precision(17);
  cout << fixed << (double)(r * pi) << endl;
  return 0;
}
