#include <bits/stdc++.h>
using namespace std;
int main() {
  double r;
  const double pi = acos(-1.0);
  cin >> r;
  double d = 2 * pi * r;
  cout << setprecision(20) << fixed << d << endl;
  return 0;
}
