#include <bits/stdc++.h>
using namespace std;
int const MOD = 1e9 + 5;
int main() {
  double r;
  cin >> r;
  double c = 2 * acos(-1.00) * r;
  cout << setprecision(20) << fixed << c << endl;
  return 0;
}
