#include<stdio.h>
#include<string.h>
#include<math.h>
#include <stdlib.h>
#include<ctype.h>


int main() {
	
	int R;
	scanf("%d",&R);
	
	float answer = R*2*3.1415;
	printf("%f",answer);
	
	return 0;
}