#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  long double R;
  cin >> R;
  long double pi = 3.1415926535897932384;
  cout << setprecision(20) << 2 * R * pi << endl;
}
