#include<cstdio>
#include<cstring>
#include<iostream>
#include<algorithm>
#include<cmath>
using namespace std;
const double pai=3.14159265358979323846;
int main() {
	double r;
	scanf("%lf",&r);
	printf("%lf\n",2*pai*r);
}