#include<stdio.h>
#define PI 3.14159265358979323846

int main(){
    
    int input;
    double enshu;
    
    scanf("%d",&input);
    
    enshu = (double)input * 2 * PI;

    printf("%f\n",enshu);

}