#include<bits/stdc++.h>
using namespace std;
#define ll long long

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	int R;
	cin>>R;

	double cir = 2 * 3.14159265 * R;

	cout<<cir<<endl;

	return 0;
}