#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
signed main() {
  cout << fixed << setprecision(6);
  double R;
  cin >> R;
  double pi = 3.1415926535;
  cout << 2.0 * R * pi << endl;
}
