#include <bits/stdc++.h>
using namespace std;
int main(void) {
  long long R;
  const double PI = 3.14159265358979323846;
  cin >> R;
  cout << setprecision(15) << 2 * double(R) * PI << endl;
  return 0;
}
