#include <bits/stdc++.h>
using namespace std;
int main() {
  double pi = 3.1415926535897932384626433832795;
  int r;
  double cr;
  cin >> r;
  cr = r * 1.0 * pi * 2 * 1.0;
  printf("%.20lf\n", cr);
}
