#include <algorithm>
#include <string.h>
#include <iostream>
#include <stdio.h>

using namespace std;

typedef double db;

db pi = 3.14159265358;

int main() {
	db a;
	cin >> a;
	printf("%.12lf", a * 2 * pi);

	return 0;
}