#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<math.h>
#define M 1000001
#define mod 10007

int main(void){
    double R;
    scanf("%lf",&R);
    printf("%lf\n",R*2*3.14);
    return 0;
}
