#include <bits/stdc++.h>
using namespace std;
const double pi = 3.141592653589;
int main() {
  double data;
  cin >> data;
  long double ans = (double)(data + data) * pi;
  cout << std::fixed << std::setprecision(15);
  cout << ans << endl;
  return 0;
}
