#include <stdio.h>
#include <math.h>
  
int main(void)
{

  float radius;
 
  float area;
 
  float length;
  
  scanf("%f", &radius);
 
  length =  2 * M_PI * radius;
  printf("%.3f\n", length);
 
  return 0;
}