#include <bits/stdc++.h>
using namespace std;
int32_t main() {
  double pie;
  pie = 3.141592653;
  double r;
  cin >> r;
  double ans = 2 * pie * r;
  cout << fixed;
  cout << std::setprecision(10);
  cout << ans << endl;
}
