#include <bits/stdc++.h>
using namespace std;
int R;
const double pi = 3.14159265359;
int main() {
  cin >> R;
  double ans = R * pi * 2.0;
  cout << fixed << setprecision(6) << ans << endl;
  return 0;
}
