#include<stdio.h>
#include<math.h>
#include<stdlib.h>
#define pi 2*acos(0.0)
int main()
{
    int rad;
    double circum;

    scanf("%d",&rad);

    circum=2*pi*rad;

    printf("%lf\n",circum);

    return 0;
}
