#include <bits/stdc++.h>
using namespace std;
long double pi = 3.141592653589793238;
int main() {
  long double r;
  cin >> r;
  r = 2 * r;
  r = r * pi;
  std::cout << std::setprecision(12) << r;
  return 0;
}
