#include <bits/stdc++.h>
using namespace std;
int main() {
  int R;
  double pi, l;
  cin >> R;
  pi = 3.141592;
  l = 2 * R * pi;
  cout << fixed;
  cout << setprecision(3) << l << endl;
  return 0;
}
