#include <bits/stdc++.h>
using namespace std;
int main() {
  const double PI = 3.14159265358979323846;
  int r;
  cin >> r;
  double ans = 0;
  ans = PI * (double)r * 2.0;
  printf("%.14f\n", ans);
  return 0;
}
