#include <bits/stdc++.h>
using namespace std;
int main() {
  double n, pi = 3.1415926535897932;
  cin >> n;
  double ans = 2 * (double)(pi) * (double)(n);
  cout << fixed << setprecision(15) << ans << endl;
}
