#include <bits/stdc++.h>
using namespace std;
const double PI = 3.1415926535897932;
int main() {
  int R;
  cin >> R;
  double ans = 2.0 * PI * R;
  cout << fixed << setprecision(14);
  cout << ans << endl;
}
