#include <iostream>
#include <stdio.h>
#include <vector>
#include<algorithm>
#include<iomanip>
#include<math.h>
using namespace std;



int main()
{

	double  N, m;

	cin >> N;

	m = 3.14 * N * 2;

	cout << m;


}