#include<stdio.h>
#include<math.h>
int main(){
  int r;
  double d;
  if (scanf("%d", &r) == 1) {
    d=2*r*M_PI;
    printf("%lf",d);
  }
  else
    printf("Failed to read integer.\n");
  return 0;
}
