#include <bits/stdc++.h>
using namespace std;
using lint = long long;
template <typename T>
T sq(T x) {
  return x * x;
}
signed main() {
  lint R;
  cin >> R;
  cout << 2. * M_PI * R << endl;
  return 0;
}
