#include <bits/stdc++.h>
#pragma GCC optimize("-Ofast", "-funroll-all-loops")
using namespace std;
const double PI = acos(-1.0);
signed main() {
  int n;
  cin >> n;
  printf("%.10lf\n", 2.0 * PI * n);
  return 0;
}
