#include <bits/stdc++.h>
const double PI = 3.141592653589793;
using namespace std;
int main() {
  int n;
  cin >> n;
  double ans;
  ans = 2 * n * PI;
  cout << fixed << setprecision(20) << ans << endl;
  return 0;
}
