#include <iostream>
#include <cmath>
#define pi acos(-1)

using namespace std;

int main() {
  double ans;
  int r;
  scanf("%d", &r);
   ans = 2.0 * pi * r;
   printf("%lf\n", ans);
  }
  return 0;
}
  