#include <iostream>
#include<vector>
#include<algorithm>
using namespace std;

int main() {
	int a;
	cin >> a;
	cout << a * 2* 3.14159265358979323846264338327950288419716939937510 << endl;
	return 0;
	
}