#include <bits/stdc++.h>
using namespace std;
int main(int argc, char const *argv[]) {
  int n;
  cin >> n;
  int t = 2 * n;
  double r = 3.141592653589793 * t;
  cout << fixed << setprecision(20) << r << endl;
  return 0;
}
