#include <stdio.h>
#include <math.h>
     
    int main (void){
      int R;
      scanf("%d", &R);
      
      double length = 2 * R * M_PI;
      
      printf("%f", length);
      
      return 0;
    }