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